Go to the documentation of this file.
22 #ifndef __BFA_MODULES_H__
23 #define __BFA_MODULES_H__
66 #define BFA_MODULE(__mod) \
67 static void bfa_ ## __mod ## _meminfo( \
68 struct bfa_iocfc_cfg_s *cfg, \
69 struct bfa_meminfo_s *meminfo, \
71 static void bfa_ ## __mod ## _attach(struct bfa_s *bfa, \
72 void *bfad, struct bfa_iocfc_cfg_s *cfg, \
73 struct bfa_pcidev_s *pcidev); \
74 static void bfa_ ## __mod ## _detach(struct bfa_s *bfa); \
75 static void bfa_ ## __mod ## _start(struct bfa_s *bfa); \
76 static void bfa_ ## __mod ## _stop(struct bfa_s *bfa); \
77 static void bfa_ ## __mod ## _iocdisable(struct bfa_s *bfa); \
79 extern struct bfa_module_s hal_mod_ ## __mod; \
80 struct bfa_module_s hal_mod_ ## __mod = { \
81 bfa_ ## __mod ## _meminfo, \
82 bfa_ ## __mod ## _attach, \
83 bfa_ ## __mod ## _detach, \
84 bfa_ ## __mod ## _start, \
85 bfa_ ## __mod ## _stop, \
86 bfa_ ## __mod ## _iocdisable, \
89 #define BFA_CACHELINE_SZ (256)