diff options
author | Adam Kaufman <adam.kaufman@pinnacle.com> | 2007-02-06 19:47:50 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@coresystems.de> | 2007-02-06 19:47:50 +0000 |
commit | 5bc9e26ae09fe5e89a32ea86e6492258c1bfcecf (patch) | |
tree | 53d889789d8317e36e0f3238902e3d268fd5d05e /82802ab.c | |
parent | a6f1039c6ffbb2ea067b9e3981a0737a6beaa421 (diff) | |
download | flashrom-5bc9e26ae09fe5e89a32ea86e6492258c1bfcecf.zip flashrom-5bc9e26ae09fe5e89a32ea86e6492258c1bfcecf.tar.gz |
This patch is a rework of Adam Kaufman's Solaris patch
* flash.h:
- add a license header
- add system definitions
* flash_enable.c:
- put io priviledge access in one single place
- add includes required for Solaris.
* lbtable.c, flash_rom.c, 82802ab.c:
- use MEM_DEV so it works on Solaris
* sst49lfxxxc.c, sharplhf00l04.c, sst_fwhub.c, 82802ab.c
- drop unneeded include to sys/io.h
* Makefile
- adapt to Solaris specifics.
Corresponding to flashrom svn r88 and coreboot v2 svn r2550.
Signed-off-by: Adam Kaufman <adam.kaufman@pinnacle.com>
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Adam Kaufman <adam.kaufman@pinnacle.com>
Diffstat (limited to '82802ab.c')
-rw-r--r-- | 82802ab.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -26,7 +26,6 @@ #include <errno.h> #include <fcntl.h> #include <sys/mman.h> -#include <sys/io.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> @@ -83,7 +82,7 @@ int probe_82802ab(struct flashchip *flash) flash->fd_mem, (off_t) (0 - 0x400000 - size)); if (bios == MAP_FAILED) { // it's this part but we can't map it ... - perror("Error MMAP /dev/mem"); + perror("Error MMAP memory using " MEM_DEV ); exit(1); } |