home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.sustworks.com 2018
/
ftp.sustworks.com.zip
/
ftp.sustworks.com
/
USBAx8817x_103b11.dmg
/
src
/
Source
/
USBAx88178.h
< prev
next >
Wrap
C/C++ Source or Header
|
2008-02-18
|
2KB
|
61 lines
/*
File: USBAx88178.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 Initial Creation
*/
#define PHY_MODE_MARVELL (0x0000)
/* The following definition are from the linux driver,
* drivers/usb/net/asix.c
*/
#define AX_GPIO_GPO0EN 0x01 /* GPIO0 Output enable */
#define AX_GPIO_GPO_0 0x02 /* GPIO0 Output value */
#define AX_GPIO_GPO1EN 0x04 /* GPIO1 Output enable */
#define AX_GPIO_GPO_1 0x08 /* GPIO1 Output value */
#define AX_GPIO_GPO2EN 0x10 /* GPIO2 Output enable */
#define AX_GPIO_GPO_2 0x20 /* GPIO2 Output value */
#define AX_GPIO_RESERVED 0x40 /* Reserved */
#define AX_GPIO_RSE 0x80 /* Reload serial EEPROM */
class USBAx88178 : public USBAx88772 {
// Constructor & Destructor stuff
OSDeclareDefaultStructors(USBAx88178);
UInt16 ledmode;
UInt16 phymode;
protected:
virtual bool resetMAC(void);
public:
virtual IOReturn setMaxPacketSize(UInt32 maxSize);
virtual IOReturn getMaxPacketSize(UInt32 *maxSize) const;
virtual bool init(OSDictionary *properties = 0);
}; /* end class USBAx88178 */