Home
last modified time | relevance | path

Searched refs:SMB_CSR (Results 1 – 3 of 3) sorted by relevance

/linux-2.4.37.9/drivers/i2c/
Di2c-algo-sibyte.c40 #define SMB_CSR(a,r) ((long)(a->reg_base + r)) macro
57 while (csr_in32(SMB_CSR(adap, R_SMB_STATUS)) & M_SMB_BUSY) in smbus_xfer()
63 V_SMB_TT_QUICKCMD), SMB_CSR(adap, R_SMB_START)); in smbus_xfer()
68 SMB_CSR(adap, R_SMB_START)); in smbus_xfer()
71 csr_out32(V_SMB_CMD(command), SMB_CSR(adap, R_SMB_CMD)); in smbus_xfer()
73 SMB_CSR(adap, R_SMB_START)); in smbus_xfer()
77 csr_out32(V_SMB_CMD(command), SMB_CSR(adap, R_SMB_CMD)); in smbus_xfer()
80 SMB_CSR(adap, R_SMB_START)); in smbus_xfer()
83 csr_out32(V_SMB_LB(data->byte), SMB_CSR(adap, R_SMB_DATA)); in smbus_xfer()
85 SMB_CSR(adap, R_SMB_START)); in smbus_xfer()
[all …]
/linux-2.4.37.9/arch/mips/sibyte/swarm/
Drtc_m41t81.c85 #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()
[all …]
Drtc_xicor1241.c61 #define SMB_CSR(reg) (KSEG1 | A_SMB_REGISTER(1, reg)) macro
65 while (in64(SMB_CSR(R_SMB_STATUS)) & M_SMB_BUSY) in xicor_read()
68 out64((addr >> 8) & 0x7, SMB_CSR(R_SMB_CMD)); in xicor_read()
69 out64((addr & 0xff), SMB_CSR(R_SMB_DATA)); in xicor_read()
70 out64((V_SMB_ADDR(X1241_CCR_ADDRESS) | V_SMB_TT_WR2BYTE), SMB_CSR(R_SMB_START)); in xicor_read()
72 while (in64(SMB_CSR(R_SMB_STATUS)) & M_SMB_BUSY) in xicor_read()
75 out64((V_SMB_ADDR(X1241_CCR_ADDRESS) | V_SMB_TT_RD1BYTE), SMB_CSR(R_SMB_START)); in xicor_read()
77 while (in64(SMB_CSR(R_SMB_STATUS)) & M_SMB_BUSY) in xicor_read()
80 if (in64(SMB_CSR(R_SMB_STATUS)) & M_SMB_ERROR) { in xicor_read()
82 out64(M_SMB_ERROR, SMB_CSR(R_SMB_STATUS)); in xicor_read()
[all …]