nidas
v1.2-1520
|
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <errno.h>
#include <nidas/linux/serial/pcmcom8.h>
Functions | |
int | printConfig (int fd, const char *devname) |
int | setConfig (int fd, const char *devname, int port0Addr, const int *irqs) |
int | getNumBoards (int fd, const char *devname) |
int | getISABaseAddr (int fd, const char *devname, unsigned long *baseaddr) |
void | usage (const char *argv0) |
int | main (int argc, char **argv) |
int getISABaseAddr | ( | int | fd, |
const char * | devname, | ||
unsigned long * | baseaddr | ||
) |
References PCMCOM8_IOCGISABASE.
int getNumBoards | ( | int | fd, |
const char * | devname | ||
) |
References PCMCOM8_IOCGNBOARD.
int main | ( | int | argc, |
char ** | argv | ||
) |
References fd, getISABaseAddr(), getNumBoards(), irqs, printConfig(), setConfig(), and usage().
int printConfig | ( | int | fd, |
const char * | devname | ||
) |
int setConfig | ( | int | fd, |
const char * | devname, | ||
int | port0Addr, | ||
const int * | irqs | ||
) |
void usage | ( | const char * | argv0 | ) |