diff options
author | mbr <mbr@FreeBSD.org> | 2003-01-10 08:14:07 +0000 |
---|---|---|
committer | mbr <mbr@FreeBSD.org> | 2003-01-10 08:14:07 +0000 |
commit | 75f683db0e133f819fda95934108547a6f70a340 (patch) | |
tree | 01ba78cac3472cd40dd3593eaf5bc05bc9fee118 /sys/pci/if_sisreg.h | |
parent | d4ed6decdd7a22b69fb4ac7f58d952996eb04abd (diff) | |
download | FreeBSD-src-75f683db0e133f819fda95934108547a6f70a340.zip FreeBSD-src-75f683db0e133f819fda95934108547a6f70a340.tar.gz |
Sis no longer implements the enhanced phy control
register, and phy has to be directly accessed via mdio.
Patch converted to CURRENT from STABLE.
Submitted by: luoqi
Reviewed by: luoqi (again)
MFC after: 2 weeks
Diffstat (limited to 'sys/pci/if_sisreg.h')
-rw-r--r-- | sys/pci/if_sisreg.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/pci/if_sisreg.h b/sys/pci/if_sisreg.h index a839b37..9ba2195 100644 --- a/sys/pci/if_sisreg.h +++ b/sys/pci/if_sisreg.h @@ -121,6 +121,10 @@ #define SIS_EECTL_CLK 0x00000004 #define SIS_EECTL_CSEL 0x00000008 +#define SIS_MII_CLK 0x00000040 +#define SIS_MII_DIR 0x00000020 +#define SIS_MII_DATA 0x00000010 + #define SIS_EECMD_WRITE 0x140 #define SIS_EECMD_READ 0x180 #define SIS_EECMD_ERASE 0x1c0 @@ -405,6 +409,23 @@ struct sis_type { char *sis_name; }; +struct sis_mii_frame { + u_int8_t mii_stdelim; + u_int8_t mii_opcode; + u_int8_t mii_phyaddr; + u_int8_t mii_regaddr; + u_int8_t mii_turnaround; + u_int16_t mii_data; +}; + +/* + * MII constants + */ +#define SIS_MII_STARTDELIM 0x01 +#define SIS_MII_READOP 0x02 +#define SIS_MII_WRITEOP 0x01 +#define SIS_MII_TURNAROUND 0x02 + #define SIS_TYPE_900 1 #define SIS_TYPE_7016 2 #define SIS_TYPE_83815 3 |