diff options
author | thompsa <thompsa@FreeBSD.org> | 2010-09-02 03:47:07 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2010-09-02 03:47:07 +0000 |
commit | 19070e6cf77ebf360e3b2c3704ccf11c5585c8d4 (patch) | |
tree | e6846ffb95fb6d55aeb931874e26f55e20cb79dc /sys/dev/usb/net/if_axereg.h | |
parent | 052a1466647cc9ebcfc2d465467b0e6838de2e2e (diff) | |
download | FreeBSD-src-19070e6cf77ebf360e3b2c3704ccf11c5585c8d4.zip FreeBSD-src-19070e6cf77ebf360e3b2c3704ccf11c5585c8d4.tar.gz |
Add GPIO programming for more PHY hardware.
Submitted by: yongari
Diffstat (limited to 'sys/dev/usb/net/if_axereg.h')
-rw-r--r-- | sys/dev/usb/net/if_axereg.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sys/dev/usb/net/if_axereg.h b/sys/dev/usb/net/if_axereg.h index ae1a1d6..e3463e0 100644 --- a/sys/dev/usb/net/if_axereg.h +++ b/sys/dev/usb/net/if_axereg.h @@ -153,6 +153,25 @@ #define AXE_772_PHY_NO_EPHY 0x10 /* Embedded 10/100 PHY of AX88772 */ +#define AXE_GPIO0_EN 0x01 +#define AXE_GPIO0 0x02 +#define AXE_GPIO1_EN 0x04 +#define AXE_GPIO1 0x08 +#define AXE_GPIO2_EN 0x10 +#define AXE_GPIO2 0x20 +#define AXE_GPIO_RELOAD_EEPROM 0x80 + +#define AXE_PHY_MODE_MARVELL 0x00 +#define AXE_PHY_MODE_CICADA 0x01 +#define AXE_PHY_MODE_AGERE 0x02 +#define AXE_PHY_MODE_CICADA_V2 0x05 +#define AXE_PHY_MODE_AGERE_GMII 0x06 +#define AXE_PHY_MODE_CICADA_V2_ASIX 0x09 +#define AXE_PHY_MODE_REALTEK_8211CL 0x0C +#define AXE_PHY_MODE_REALTEK_8211BN 0x0D +#define AXE_PHY_MODE_REALTEK_8251CL 0x0E +#define AXE_PHY_MODE_ATTANSIC 0x40 + #define AXE_BULK_BUF_SIZE 16384 /* bytes */ #define AXE_CTL_READ 0x01 |