Blame util.h

Packit Service e18529
/*
Packit Service e18529
 * This file is part of the dmidecode project.
Packit Service e18529
 *
Packit Service e18529
 *   Copyright (C) 2003-2017 Jean Delvare <jdelvare@suse.de>
Packit Service e18529
 *
Packit Service e18529
 *   This program is free software; you can redistribute it and/or modify
Packit Service e18529
 *   it under the terms of the GNU General Public License as published by
Packit Service e18529
 *   the Free Software Foundation; either version 2 of the License, or
Packit Service e18529
 *   (at your option) any later version.
Packit Service e18529
 *
Packit Service e18529
 *   This program is distributed in the hope that it will be useful,
Packit Service e18529
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service e18529
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service e18529
 *   GNU General Public License for more details.
Packit Service e18529
 *
Packit Service e18529
 *   You should have received a copy of the GNU General Public License
Packit Service e18529
 *   along with this program; if not, write to the Free Software
Packit Service e18529
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
Packit Service e18529
 */
Packit Service e18529
Packit Service e18529
#include <sys/types.h>
Packit Service e18529
Packit Service e18529
#include "types.h"
Packit Service e18529
Packit Service e18529
#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))
Packit Service e18529
Packit Service e18529
int checksum(const u8 *buf, size_t len);
Packit Service e18529
void *read_file(off_t base, size_t *len, const char *filename);
Packit Service e18529
void *mem_chunk(off_t base, size_t len, const char *devmem);
Packit Service e18529
int write_dump(size_t base, size_t len, const void *data, const char *dumpfile, int add);
Packit Service e18529
u64 u64_range(u64 start, u64 end);