pcivar.h (8876) | pcivar.h (12453) |
---|---|
1/************************************************************************** 2** | 1/************************************************************************** 2** |
3** $Id: pcivar.h,v 1.5 1995/03/25 21:10:38 bde Exp $ | 3** $Id: pcivar.h,v 1.6 1995/05/30 08:13:12 rgrimes Exp $ |
4** 5** Declarations for pci device drivers. 6** 7** FreeBSD 8** 9**------------------------------------------------------------------------- 10** 11** Copyright (c) 1994 Wolfgang Stanglmeier. All rights reserved. --- 221 unchanged lines hidden (view full) --- 233** There is code to support shared edge triggered ints. 234** This relies on the cooperation of the interrupt handlers: 235** they have to return a value <>0 if and only if something 236** was done. Beware of the performance penalty. 237** 238**----------------------------------------------------------------- 239*/ 240 | 4** 5** Declarations for pci device drivers. 6** 7** FreeBSD 8** 9**------------------------------------------------------------------------- 10** 11** Copyright (c) 1994 Wolfgang Stanglmeier. All rights reserved. --- 221 unchanged lines hidden (view full) --- 233** There is code to support shared edge triggered ints. 234** This relies on the cooperation of the interrupt handlers: 235** they have to return a value <>0 if and only if something 236** was done. Beware of the performance penalty. 237** 238**----------------------------------------------------------------- 239*/ 240 |
241typedef int pci_inthand_t(void *arg); 242 |
|
241struct pci_int_desc { 242 struct pci_int_desc * pcid_next; 243 pcici_t pcid_tag; | 243struct pci_int_desc { 244 struct pci_int_desc * pcid_next; 245 pcici_t pcid_tag; |
244 int (*pcid_handler)(); | 246 pci_inthand_t *pcid_handler; |
245 void* pcid_argument; 246 unsigned * pcid_maskptr; 247 unsigned pcid_tally; 248 unsigned pcid_mask; 249}; 250 | 247 void* pcid_argument; 248 unsigned * pcid_maskptr; 249 unsigned pcid_tally; 250 unsigned pcid_mask; 251}; 252 |
251int pci_map_int (pcici_t tag, int (*func)(), void* arg, unsigned * maskptr); | 253int pci_map_int (pcici_t tag, pci_inthand_t *func, void *arg, 254 unsigned *maskptr); |
252 253int pci_unmap_int (pcici_t tag); 254 255#endif | 255 256int pci_unmap_int (pcici_t tag); 257 258#endif |