diff options
Diffstat (limited to 'driver/common.h')
-rw-r--r-- | driver/common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/driver/common.h b/driver/common.h index 3d26a97..5de501c 100644 --- a/driver/common.h +++ b/driver/common.h @@ -71,9 +71,13 @@ typedef struct { atomic_t umem_count; /* id for next umem entry */ int msi_mode; /* Flag specifying if interrupt have been initialized in MSI mode */ + atomic_t refs; /* Reference counter */ } pcidriver_privdata_t; +void pcidriver_module_get(pcidriver_privdata_t *privdata); +void pcidriver_module_put(pcidriver_privdata_t *privdata); + /*************************************************************************/ /* Some nice defines that make code more readable */ /* This is to print nice info in the log */ |