Lines Matching refs:SMB_CSR
85 #define SMB_CSR(reg) (KSEG1 | A_SMB_REGISTER(1, reg)) macro
89 while (in64(SMB_CSR(R_SMB_STATUS)) & M_SMB_BUSY) in m41t81_read()
92 out64(addr & 0xff, SMB_CSR(R_SMB_CMD)); in m41t81_read()
93 out64((V_SMB_ADDR(M41T81_CCR_ADDRESS) | V_SMB_TT_WR1BYTE), SMB_CSR(R_SMB_START)); in m41t81_read()
95 while (in64(SMB_CSR(R_SMB_STATUS)) & M_SMB_BUSY) in m41t81_read()
98 out64((V_SMB_ADDR(M41T81_CCR_ADDRESS) | V_SMB_TT_RD1BYTE), SMB_CSR(R_SMB_START)); in m41t81_read()
100 while (in64(SMB_CSR(R_SMB_STATUS)) & M_SMB_BUSY) in m41t81_read()
103 if (in64(SMB_CSR(R_SMB_STATUS)) & M_SMB_ERROR) { in m41t81_read()
105 out64(M_SMB_ERROR, SMB_CSR(R_SMB_STATUS)); in m41t81_read()
109 return (in64(SMB_CSR(R_SMB_DATA)) & 0xff); in m41t81_read()
114 while (in64(SMB_CSR(R_SMB_STATUS)) & M_SMB_BUSY) in m41t81_write()
117 out64((addr & 0xFF), SMB_CSR(R_SMB_CMD)); in m41t81_write()
118 out64((b & 0xff), SMB_CSR(R_SMB_DATA)); in m41t81_write()
120 SMB_CSR(R_SMB_START)); in m41t81_write()
122 while (in64(SMB_CSR(R_SMB_STATUS)) & M_SMB_BUSY) in m41t81_write()
125 if (in64(SMB_CSR(R_SMB_STATUS)) & M_SMB_ERROR) { in m41t81_write()
127 out64(M_SMB_ERROR, SMB_CSR(R_SMB_STATUS)); in m41t81_write()
133 SMB_CSR(R_SMB_START)); in m41t81_write()
135 while (in64(SMB_CSR(R_SMB_STATUS)) & M_SMB_BUSY) in m41t81_write()