|
nidas v1.2.3
|
#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/diamond/emerald.h>Functions | |
| int | printConfig (int fd, const char *devname, int eepromAccess) |
| int | setConfig (int fd, const char *devname, int port0Addr, const int *irqs, int eepromAccess) |
| int | getNumBoards (int fd, const char *devname) |
| int | getISABaseAddr (int fd, const char *devname, unsigned long *baseaddr) |
| int | enablePorts (int fd, const char *devname) |
| int | getPortMode (int fd, const char *devname, int eepromAccess) |
| int | setPortMode (int fd, const char *devname, int eepromAccess, int mode) |
| void | usage (const char *argv0) |
| int | main (int argc, char **argv) |
| int enablePorts | ( | int | fd, |
| const char * | devname ) |
References EMERALD_IOCPORTENABLE, and fd.
Referenced by main().
| int getISABaseAddr | ( | int | fd, |
| const char * | devname, | ||
| unsigned long * | baseaddr ) |
References EMERALD_IOCGISABASE, and fd.
Referenced by main().
| int getNumBoards | ( | int | fd, |
| const char * | devname ) |
References EMERALD_IOCGNBOARD, and fd.
Referenced by main().
| int getPortMode | ( | int | fd, |
| const char * | devname, | ||
| int | eepromAccess ) |
References EMERALD_IOCG_EEMODE, EMERALD_IOCG_MODE, and fd.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv ) |
References enablePorts(), fd, getISABaseAddr(), getNumBoards(), getPortMode(), irqs, printConfig(), setConfig(), setPortMode(), and usage().
| int printConfig | ( | int | fd, |
| const char * | devname, | ||
| int | eepromAccess ) |
References EMERALD_IOCGEEPORTCONFIG, EMERALD_IOCGPORTCONFIG, fd, and printf().
Referenced by main().
| int setConfig | ( | int | fd, |
| const char * | devname, | ||
| int | port0Addr, | ||
| const int * | irqs, | ||
| int | eepromAccess ) |
References EMERALD_IOCEECONFIGLOAD, EMERALD_IOCSEEPORTCONFIG, EMERALD_IOCSPORTCONFIG, fd, irqs, and printf().
Referenced by main().
| int setPortMode | ( | int | fd, |
| const char * | devname, | ||
| int | eepromAccess, | ||
| int | mode ) |
References EMERALD_IOCEECONFIGLOAD, EMERALD_IOCS_EEMODE, EMERALD_IOCS_MODE, fd, and emerald_mode::mode.
Referenced by main().
| void usage | ( | const char * | argv0 | ) |
Referenced by main().