home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.sustworks.com 2018
/
ftp.sustworks.com.zip
/
ftp.sustworks.com
/
USBAx8817x_101.dmg
/
src
/
Source
/
USBAx88772_private.h
< prev
next >
Wrap
Text File
|
2005-10-08
|
5KB
|
108 lines
/*
File: USBAx88772_private.h
Description: Driver for USBAx8817x USB-To-Ethernet devices
Copyright: Copyright 2005, Daniel Sumorok and Peter Sichel
Disclaimer: This program is free software; you can redistribute it
and/or modify it under the terms of the GNU General
Public License as published by the Free Software
Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will
be useful, but WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
You should have received a copy of the GNU General
along with this program; if not, write to the Free
Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. Change History (least
recent first):
Change History (most recent first):
<1> 09/25/05 Created
*/
/*
* Copyright (c) 1997, 1998, 1999, 2000-2003
* Bill Paul <wpaul@windriver.com>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Bill Paul.
* 4. Neither the name of the author nor the names of any co-contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
*/
#define AXE_CMD_READ_RXTX_SRAM 0x8002
#define AXE_CMD_WRITE_RXTX_SRAM 0x8103
#define AXE_CMD_MII_OPMODE_SW 0x0106
#define AXE_CMD_MII_READ_REG 0x2007
#define AXE_CMD_MII_WRITE_REG 0x2108
#define AXE_CMD_MII_STATUS 0x1009
#define AXE_CMD_MII_OPMODE_HW 0x010A
#define AXE_CMD_SROM_READ 0x200B
#define AXE_CMD_SROM_WRITE 0x010C
#define AXE_CMD_SROM_WR_ENABLE 0x010D
#define AXE_CMD_SROM_WR_DISABLE 0x010E
#define AXE_CMD_RXCTL_READ 0x200F
#define AXE_CMD_RXCTL_WRITE 0x0110
#define AXE_CMD_READ_IPG012 0x3011
#define AXE_CMD_WRITE_IPG012 0x0112
#define AXE_CMD_READ_NODEID 0x6013
#define AXE_CMD_WRITE_NODEID 0x6114
#define AXE_CMD_READ_MCAST 0x8015
#define AXE_CMD_WRITE_MCAST 0x8116
#define AXE_CMD_TEST 0x0117
#define AXE_CMD_READ_PHYID 0x2019
#define AXE_CMD_READ_MEDIA 0x201A
#define AXE_CMD_WRITE_MEDIA 0x011B
#define AXE_CMD_READ_MONITOR_MODE 0x101C
#define AXE_CMD_WRITE_MONITOR_MODE 0x011D
#define AXE_CMD_READ_GPIO 0x101E
#define AXE_CMD_WRITE_GPIO 0x011F
#define AXE_CMD_RESET 0x0120
#define AXE_CMD_SW_PHY_SELECT 0x0122
#define AXE_MEDIA_GMII_MODE 0x0001
#define AXE_MEDIA_FULL_DUPLEX 0x0002
#define AXE_MEDIA_RX_FLOW_CONTROL 0x0010
#define AXE_MEDIA_TX_FLOW_CONTROL 0x0020
#define AXE_MEDIA_JUMBO_FRAME 0x0040
#define AXE_MEDIA_RECEIVE_ENABLE 0x0100
#define AXE_MEDIA_100_MODE 0x0200
#define AXE_MEDIA_STOP_BACKPRESSURE 0x0400
#define AXE_MEDIA_SUPER_MAC 0x1000
#define AXE_RXCMD_PROMISC 0x0001
#define AXE_RXCMD_ALLMULTI 0x0002
#define AXE_RXCMD_SEP 0x0004
#define AXE_RXCMD_BROADCAST 0x0008
#define AXE_RXCMD_MULTICAST 0x0010
#define AXE_RXCMD_ENABLE 0x0080
#define USB_BURST_MASK 0x0300
#define USB_BURST_2048 0x0000
#define USB_BURST_4096 0x0100
#define USB_BURST_8192 0x0200
#define USB_BURST_16384 0x0300
#if 0
#define ENABLE_FLAGS (AXE_RXCMD_ENABLE | \
AXE_RXCMD_BROADCAST | AXE_RXCMD_MULTICAST)
#endif