Download "user manual"
Transcript
Writing User-level VME Device Drivers
“a16n”,
“a16s”,
“a24n”,
“a24s”,
“a32n”,
“a32s”
};
#define MAXSPACE (sizeof(spaces)/sizeof(spaces[0]))
void usage(void);
long ntol(char *);
long chkspc(char *);
char devnm[PATH_MAX];
static void probe_fail(int);
int
main(int ac, char *av[])
{
int
c, errflg = 0;
int
dir_f;
long
adap_f;
long
addr_f;
long
size_f;
long
val_f;
char *space_f;
int
fd;
char *mapaddr;
int
pgaddr, pgoff;
int
pgsz;
int
rtval;
progname = av[0];
while( (c = getopt(ac,av,”rws:a:b:p:v:”)) != -1 )
switch( c ) {
case ’r’:
if( state & S_DIR ) {
usage();
return 1;
}
dir_f = D_READ;
state |= S_DIR;
67
Related documents
Motorola Built-In Test (MBIT) Diagnostic Software User`s Manual
TLT-1C User Manual
VMEHSD
C - Oracle Documentation
IRIX™ Device Driver Programmer`s Guide
IRIX® 6.3 for O2™ Device Driver Programming Guide
Powr-Flite PF53 Use and Care Manual
Motorola MCP750 Specifications
Handbuch zur Festplatte
AUDIOLINE VR-C10 Specifications
User Manual - ge
Alpha SRM Console for Alpha Microprocessor Motherboards User's