Just foward declare 'struct adapter' instead of declaring an actual

'adapter' structure.
This commit is contained in:
jhb 2006-08-31 18:50:16 +00:00
parent 4e7db0ae21
commit 8f6bfd83f7

View File

@ -232,9 +232,10 @@ typedef enum _XSUM_CONTEXT_T {
OFFLOAD_UDP_IP
} XSUM_CONTEXT_T;
struct adapter adapter; /* XXX: ugly forward declaration */
struct adapter;
struct em_int_delay_info {
struct adapter *adapter; /* XXX: ugly pointer */
struct adapter *adapter; /* Back-pointer to the adapter struct */
int offset; /* Register offset to read/write */
int value; /* Current value in usecs */
};