}; |
|
|
#define TX_INT | 0x8000 | |
#define W1_RXDATA | 0x0 | 6 |
#define W1_TXDATA | 0x0 |
|
7 | ||
#define W1_FREETX | 0xc |
|
8 |
5
1
2
Defines the offset for the receive status register.
Defines an enumerated data type called w1_rxstat. The if_el device driver can assign one of the following values to W1_RXSTAT (the receive status register):
3
4
RX_IC | Indicates an incomplete operation. |
RX_ER | Indicates an error in the operation. |
RX_EM | If any of the bits are set in the mask, indicates |
| that an error has occurred. |
RX_EOR | Indicates an overrun error in the operation. |
RX_ERT | Indicates a |
RX_EAL | Indicates an alignment error. |
RX_ECR | Indicates a CRC error. |
RX_EOS | Indicates an oversize error. |
RX_BYTES | Mask used to determine the number of bytes received. |
Defines the offset for the transmit status register.
Defines an enumerated data type called w1_txstat. The if_el device driver can assign one of the following values to W1_TXSTAT (the transmit status register):
5
6
7
TX_CM | Indicates that the transmission completed. |
TX_IS | Indicates that the device should interrupt when a |
| transmission is successfully completed. |
TX_JB | Indicates a jabber error. |
TX_UN | Indicates an underrun. This is a serious error |
| that requires a reset. |
TX_MC | Indicates the maximum number of colli- |
| sions that occurred. |
TX_OF | Indicates an overflow error. |
TX_RE | Not currently used. |
Defines the offset for the request interrupt after completion register.
Defines the offset for the receive data register.
Defines the offset for the transmit data register.