Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
xdi_adapter.h
Go to the documentation of this file.
1 /* $Id: xdi_adapter.h,v 1.7 2004/03/21 17:26:01 armin Exp $ */
2 
3 #ifndef __DIVA_OS_XDI_ADAPTER_H__
4 #define __DIVA_OS_XDI_ADAPTER_H__
5 
6 #define DIVAS_XDI_ADAPTER_BUS_PCI 0
7 #define DIVAS_XDI_ADAPTER_BUS_ISA 1
8 
9 typedef struct _divas_pci_card_resources {
12  void *hdev;
13 
14  dword bar[8]; /* contains context of appropriate BAR Register */
15  void __iomem *addr[8]; /* same bar, but mapped into memory */
16  dword length[8]; /* bar length */
18  unsigned int qoffset;
21 
22 typedef union _divas_card_resources {
25 
30  int length);
33 
34 #define DIVA_XDI_MBOX_BUSY 1
35 #define DIVA_XDI_MBOX_WAIT_XLOG 2
36 
37 typedef struct _xdi_mbox_t {
41  void *data;
42 } xdi_mbox_t;
43 
48 
49 typedef struct _diva_os_xdi_adapter {
50  struct list_head link;
51  int CardIndex;
53  int controller; /* number of this controller */
54  int Bus; /* PCI, ISA, ... */
56  char port_name[24];
61  void *slave_list;
62  void *proc_adapter_dir; /* adapterX proc entry */
63  void *proc_info; /* info proc entry */
64  void *proc_grp_opt; /* group_optimization */
65  void *proc_d_l1_down; /* dynamic_l1_down */
69 
70 #endif