/* * 3c905cutil.c - perform various control ops on the 3C905C bios rom * which we assume to be an AT49BV512 * */ #ifndef __i386__ # error "This program can't compile or run on non-intel computers" #else #include #include #include #include #include int main(int argc, char **argv) { unsigned int ioaddr, i, n; unsigned char b; setuid(0); /* if we're setuid, do it really */ if (argc != 3) { printf("Usage: romid ioaddr [erase|id|read >file|prog