D | mediabay.c | 63 #define MB_FCR32(bay, r) ((bay)->base + ((r) >> 2)) argument 64 #define MB_FCR8(bay, r) (((volatile u8*)((bay)->base)) + (r)) argument 66 #define MB_IN32(bay,r) (in_le32(MB_FCR32(bay,r))) argument 67 #define MB_OUT32(bay,r,v) (out_le32(MB_FCR32(bay,r), (v))) argument 68 #define MB_BIS(bay,r,v) (MB_OUT32((bay), (r), MB_IN32((bay), r) | (v))) argument 69 #define MB_BIC(bay,r,v) (MB_OUT32((bay), (r), MB_IN32((bay), r) & ~(v))) argument 70 #define MB_IN8(bay,r) (in_8(MB_FCR8(bay,r))) argument 71 #define MB_OUT8(bay,r,v) (out_8(MB_FCR8(bay,r), (v))) argument 77 u8 (*content)(struct media_bay_info* bay); 78 void (*power)(struct media_bay_info* bay, int on_off); [all …]
|