AlcapDAQ
1
|
#include <stdio.h>
#include <string.h>
#include "mcstd.h"
Go to the source code of this file.
Macros | |
#define | MAX_DEVICES 4 /* Maximal 4 PC cards */ |
Functions | |
INLINE void | cam8i (const int c, const int n, const int a, const int f, BYTE *d) |
INLINE void | cami (const int c, const int n, const int a, const int f, WORD *d) |
INLINE void | cam16i (const int c, const int n, const int a, const int f, WORD *d) |
INLINE void | cam24i (const int c, const int n, const int a, const int f, DWORD *d) |
INLINE void | cam8i_q (const int c, const int n, const int a, const int f, BYTE *d, int *x, int *q) |
INLINE void | cam16i_q (const int c, const int n, const int a, const int f, WORD *d, int *x, int *q) |
INLINE void | cam24i_q (const int c, const int n, const int a, const int f, DWORD *d, int *x, int *q) |
INLINE void | cam16i_r (const int c, const int n, const int a, const int f, WORD **d, const int r) |
INLINE void | cam24i_r (const int c, const int n, const int a, const int f, DWORD **d, const int r) |
INLINE void | cam16i_rq (const int c, const int n, const int a, const int f, WORD **d, const int r) |
INLINE void | cam24i_rq (const int c, const int n, const int a, const int f, DWORD **d, const int r) |
INLINE void | cam16i_sa (const int c, const int n, const int a, const int f, WORD **d, const int r) |
INLINE void | cam24i_sa (const int c, const int n, const int a, const int f, DWORD **d, const int r) |
INLINE void | cam16i_sn (const int c, const int n, const int a, const int f, WORD **d, const int r) |
INLINE void | cam24i_sn (const int c, const int n, const int a, const int f, DWORD **d, const int r) |
INLINE void | cam8o (const int c, const int n, const int a, const int f, BYTE d) |
INLINE void | camo (const int c, const int n, const int a, const int f, WORD d) |
INLINE void | cam16o (const int c, const int n, const int a, const int f, WORD d) |
INLINE void | cam24o (const int c, const int n, const int a, const int f, DWORD d) |
INLINE void | cam16o_q (const int c, const int n, const int a, const int f, WORD d, int *x, int *q) |
INLINE void | cam24o_q (const int c, const int n, const int a, const int f, DWORD d, int *x, int *q) |
INLINE void | cam8o_r (const int c, const int n, const int a, const int f, BYTE *d, const int r) |
INLINE void | cam16o_r (const int c, const int n, const int a, const int f, WORD *d, const int r) |
INLINE void | cam24o_r (const int c, const int n, const int a, const int f, DWORD *d, const int r) |
INLINE int | camc_chk (const int c) |
INLINE void | camc (const int c, const int n, const int a, const int f) |
INLINE void | camc_q (const int c, const int n, const int a, const int f, int *q) |
INLINE void | camc_sa (const int c, const int n, const int a, const int f, const int r) |
INLINE void | camc_sn (const int c, const int n, const int a, const int f, const int r) |
INLINE void | cam_inhibit_set (const int c) |
INLINE void | cam_inhibit_clear (const int c) |
INLINE int | cam_inhibit_test (const int c) |
INLINE void | cam_crate_clear (const int c) |
INLINE void | cam_crate_zinit (const int c) |
INLINE void | cam_lam_enable (const int c, const int n) |
INLINE void | cam_lam_disable (const int c, const int n) |
INLINE void | cam_interrupt_enable (const int c) |
INLINE void | cam_interrupt_disable (const int c) |
INLINE int | cam_interrupt_test (const int c) |
INLINE void | cam_lam_read (const int c, DWORD *lam) |
INLINE void | cam_lam_clear (const int c, const int n) |
INLINE int | cam_init_rpc (char *host_name, char *exp_name, char *fe_name, char *client_name, char *rpc_server) |
int | directio_give_port (DWORD start, DWORD end) |
int | directio_lock_port (DWORD start, DWORD end) |
int | pci_scan (int vendor_id, int device_id, int n_dev, BYTE *pirq, DWORD *ba) |
void | catch_sigsegv (int signo) |
INLINE int | cam_init (void) |
INLINE void | cam_exit (void) |
Variables | |
WORD | io_base [MAX_DEVICES] |
BYTE | irq [MAX_DEVICES] |
int | gbl_sw1d [MAX_DEVICES] |
#define MAX_DEVICES 4 /* Maximal 4 PC cards */ |
Definition at line 116 of file hyt1331.c.
Referenced by cam_exit().
INLINE void cam16i | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
WORD * | d | ||
) |
INLINE void cam16i_q | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
WORD * | d, | ||
int * | x, | ||
int * | q | ||
) |
Definition at line 202 of file hyt1331.c.
References io_base, and status.
Referenced by cnaf_callback().
INLINE void cam16i_r | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
WORD ** | d, | ||
const int | r | ||
) |
INLINE void cam16i_rq | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
WORD ** | d, | ||
const int | r | ||
) |
INLINE void cam16i_sa | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
WORD ** | d, | ||
const int | r | ||
) |
INLINE void cam16i_sn | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
WORD ** | d, | ||
const int | r | ||
) |
INLINE void cam16o | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
WORD | d | ||
) |
INLINE void cam16o_q | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
WORD | d, | ||
int * | x, | ||
int * | q | ||
) |
Definition at line 508 of file hyt1331.c.
References io_base, and status.
Referenced by cnaf_callback().
INLINE void cam16o_r | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
WORD * | d, | ||
const int | r | ||
) |
INLINE void cam24i | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
DWORD * | d | ||
) |
Definition at line 163 of file hyt1331.c.
References io_base, and status.
Referenced by cam24i_sa(), cam24i_sn(), and s500_read().
INLINE void cam24i_q | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
DWORD * | d, | ||
int * | x, | ||
int * | q | ||
) |
Definition at line 223 of file hyt1331.c.
References io_base, and status.
Referenced by cnaf_callback().
INLINE void cam24i_r | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
DWORD ** | d, | ||
const int | r | ||
) |
INLINE void cam24i_rq | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
DWORD ** | d, | ||
const int | r | ||
) |
INLINE void cam24i_sa | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
DWORD ** | d, | ||
const int | r | ||
) |
INLINE void cam24i_sn | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
DWORD ** | d, | ||
const int | r | ||
) |
INLINE void cam24o | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
DWORD | d | ||
) |
INLINE void cam24o_q | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
DWORD | d, | ||
int * | x, | ||
int * | q | ||
) |
Definition at line 527 of file hyt1331.c.
References io_base, and status.
Referenced by cnaf_callback().
INLINE void cam24o_r | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
DWORD * | d, | ||
const int | r | ||
) |
INLINE void cam8i | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
BYTE * | d | ||
) |
INLINE void cam8i_q | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
BYTE * | d, | ||
int * | x, | ||
int * | q | ||
) |
INLINE void cam8o | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
BYTE | d | ||
) |
INLINE void cam8o_r | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
BYTE * | d, | ||
const int | r | ||
) |
INLINE void cam_crate_clear | ( | const int | c) |
INLINE void cam_crate_zinit | ( | const int | c) |
INLINE void cam_exit | ( | void | ) |
Definition at line 1147 of file hyt1331.c.
References directio_lock_port(), i, io_base, and MAX_DEVICES.
INLINE void cam_inhibit_clear | ( | const int | c) |
Definition at line 688 of file hyt1331.c.
References io_base.
Referenced by cam_init_once(), and cnaf_callback().
INLINE void cam_inhibit_set | ( | const int | c) |
INLINE int cam_inhibit_test | ( | const int | c) |
INLINE int cam_init | ( | void | ) |
Definition at line 1054 of file hyt1331.c.
References catch_sigsegv(), directio_give_port(), directio_lock_port(), gbl_sw1d, i, io_base, irq, pci_scan(), printf(), status, and SUCCESS.
Referenced by cam_init_once().
INLINE int cam_init_rpc | ( | char * | host_name, |
char * | exp_name, | ||
char * | fe_name, | ||
char * | client_name, | ||
char * | rpc_server | ||
) |
INLINE void cam_interrupt_disable | ( | const int | c) |
INLINE void cam_interrupt_enable | ( | const int | c) |
INLINE int cam_interrupt_test | ( | const int | c) |
INLINE void cam_lam_clear | ( | const int | c, |
const int | n | ||
) |
INLINE void cam_lam_disable | ( | const int | c, |
const int | n | ||
) |
INLINE void cam_lam_enable | ( | const int | c, |
const int | n | ||
) |
INLINE void cam_lam_read | ( | const int | c, |
DWORD * | lam | ||
) |
INLINE void camc | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f | ||
) |
Definition at line 631 of file hyt1331.c.
References io_base.
Referenced by camc_chk(), camc_sa(), camc_sn(), lrs2249_bor1(), and lrs2249_read1().
INLINE int camc_chk | ( | const int | c) |
INLINE void camc_q | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
int * | q | ||
) |
Definition at line 643 of file hyt1331.c.
References io_base, and status.
Referenced by lrs2249_read1().
INLINE void camc_sa | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
const int | r | ||
) |
INLINE void camc_sn | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
const int | r | ||
) |
INLINE void cami | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
WORD * | d | ||
) |
Definition at line 140 of file hyt1331.c.
References io_base, and status.
Referenced by cam16i(), cam16i_sa(), and lrs2249_read1().
INLINE void camo | ( | const int | c, |
const int | n, | ||
const int | a, | ||
const int | f, | ||
WORD | d | ||
) |
Definition at line 471 of file hyt1331.c.
References io_base.
Referenced by cam16o(), and s500_bor1().
void catch_sigsegv | ( | int | signo) |
Definition at line 907 of file hyt1331.c.
References printf(), and size.
Referenced by cam_exit(), and cam_init().
int pci_scan | ( | int | vendor_id, |
int | device_id, | ||
int | n_dev, | ||
BYTE * | pirq, | ||
DWORD * | ba | ||
) |
int gbl_sw1d[MAX_DEVICES] |
Definition at line 121 of file hyt1331.c.
Referenced by cam16i_sa(), cam24i_sa(), and cam_init().
WORD io_base[MAX_DEVICES] |
Definition at line 118 of file hyt1331.c.
Referenced by cam16i_q(), cam16i_r(), cam16i_rq(), cam16i_sa(), cam16o_q(), cam16o_r(), cam24i(), cam24i_q(), cam24i_r(), cam24i_rq(), cam24i_sa(), cam24o(), cam24o_q(), cam24o_r(), cam8i(), cam8i_q(), cam8o(), cam8o_r(), cam_crate_clear(), cam_crate_zinit(), cam_exit(), cam_inhibit_clear(), cam_inhibit_set(), cam_inhibit_test(), cam_init(), cam_interrupt_disable(), cam_interrupt_enable(), cam_interrupt_test(), cam_lam_clear(), cam_lam_disable(), cam_lam_enable(), cam_lam_read(), camc(), camc_chk(), camc_q(), cami(), and camo().
BYTE irq[MAX_DEVICES] |
Definition at line 119 of file hyt1331.c.
Referenced by acknowledge_vme_interrupt(), cam_init(), check_interrupt_notification(), clear_interrupt_notification(), pci_scan(), register_interrupt_notification(), set_interrupt_autodisable(), set_vector_mask(), vmedrv_unlocked_ioctl(), and wait_for_interrupt_notification().