34#define PKT_INIT_IRQ 0x1
35#define PKT_ERR_IRQ 0x2
37#define WRAP_ERR_IRQ 0x8
39#define SYNC_ERR_IRQ 0x20
41#define TOL_ERR_IRQ 0x80
42#define TICK_RX_ERR_IRQ 0x100
43#define TICK_RX_WRAP_IRQ 0x200
44#define TICK_RX_IRQ 0x400
45#define TICK_TX_WRAP_IRQ 0x800
46#define TICK_TX_IRQ 0x1000
50 volatile unsigned int config;
51 volatile unsigned int status;
53 volatile unsigned int unused0;
54 volatile unsigned int dla;
55 volatile unsigned int pid;
56 volatile unsigned int offset;
57 volatile unsigned int unused1;
58 volatile unsigned int pkt_ct;
59 volatile unsigned int pkt_ft;
60 volatile unsigned int pkt_pf_crc;
61 volatile unsigned int unused2;
62 volatile unsigned int etct;
63 volatile unsigned int etft;
64 volatile unsigned int etct_next;
65 volatile unsigned int etft_next;
66 volatile unsigned int unused3[8];
67 volatile unsigned int pimsr;
68 volatile unsigned int pimr;
69 volatile unsigned int pisr;
70 volatile unsigned int pir;
71 volatile unsigned int imr;
72 volatile unsigned int picr;
76 unsigned char sel_out;
78 unsigned char mapping;
79 unsigned char tolerance;
86 unsigned char pktsyncen;
87 unsigned char pktiniten;
88 unsigned char pktrxen;
91 unsigned char dla_mask;
102 unsigned int tick_tx;
103 unsigned int tick_tx_wrap;
104 unsigned int tick_rx;
105 unsigned int tick_rx_wrap;
106 unsigned int tick_rx_error;
109 unsigned int syncerr;
111 unsigned int wraperr;
113 unsigned int pkt_err;
114 unsigned int pkt_init;
122typedef void (*spwcuc_isr_t)(
unsigned int pimr,
void *data);
128extern void *spwcuc_open(
int minor);
131extern void spwcuc_close(
void *spwcuc);
134extern int spwcuc_reset(
void *spwcuc);
137extern void spwcuc_int_enable(
void *spwcuc);
140extern void spwcuc_int_disable(
void *spwcuc);
143extern void spwcuc_clr_stats(
void *spwcuc);
148extern void spwcuc_get_stats(
void *spwcuc,
struct spwcuc_stats *stats);
156extern void spwcuc_int_register(
void *spwcuc, spwcuc_isr_t func,
void *data);
161extern void spwcuc_config(
void *spwcuc,
struct spwcuc_cfg *cfg);
164extern unsigned int spwcuc_get_et_coarse(
void *spwcuc);
167extern unsigned int spwcuc_get_et_fine(
void *spwcuc);
170extern unsigned long long spwcuc_get_et(
void *spwcuc);
173extern unsigned int spwcuc_get_next_et_coarse(
void *spwcuc);
176extern unsigned int spwcuc_get_next_et_fine(
void *spwcuc);
179extern unsigned long long spwcuc_get_next_et(
void *spwcuc);
184extern void spwcuc_force_et(
void *spwcuc,
unsigned long long time);
187extern unsigned int spwcuc_get_tp_et_coarse(
void *spwcuc);
190extern unsigned int spwcuc_get_tp_et_fine(
void *spwcuc);
193extern unsigned long long spwcuc_get_tp_et(
void *spwcuc);
196extern void spwcuc_clear_irqs(
void *spwcuc,
int irqs);
199extern void spwcuc_enable_irqs(
void *spwcuc,
int irqs);
202extern struct spwcuc_regs *spwcuc_get_regs(
void *spwcuc);
205extern void spwcuc_register(
void);
Definition: deflate.c:114
Definition: intercom.c:87