D | sbutils.c | 42 static uint _sb_coreidx(si_info_t *sii, uint32 sba); 43 static uint _sb_scan(si_info_t *sii, uint32 sba, void *regs, uint bus, uint32 sbba, 45 static uint32 _sb_coresba(si_info_t *sii); 46 static void *_sb_setcoreidx(si_info_t *sii, uint coreidx); 48 #define SET_SBREG(sii, r, mask, val) \ argument 49 W_SBREG((sii), (r), ((R_SBREG((sii), (r)) & ~(mask)) | (val))) 56 #define R_SBREG(sii, sbr) sb_read_sbreg((sii), (sbr)) argument 57 #define W_SBREG(sii, sbr, v) sb_write_sbreg((sii), (sbr), (v)) argument 58 #define AND_SBREG(sii, sbr, v) W_SBREG((sii), (sbr), (R_SBREG((sii), (sbr)) & (v))) argument 59 #define OR_SBREG(sii, sbr, v) W_SBREG((sii), (sbr), (R_SBREG((sii), (sbr)) | (v))) argument [all …]
|