/******************************************************************************* * file ksz8051xnl.h * author Michael J. Scott * version V1.0.0. * date 05-APRIL-2014 * brief This is a Phy Driver for Micrel KSZ8051xNL * for Rowley TCP/IP Library * ****************************************************************************** Copyright (c) 2014 Michael J. Scott Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR OR COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef __KSZ8051XNL_H #define __KSZ8051XNL_H /*! \overview PHY driver for a Micrel KSZ8051xNL. */ #include "ctl_net_hw.h" /*! \brief PHY ID \ingroup PHY \synopsis \desc \b \this is the ID returned by the KSZ8051xNL PHY. */ #define KSZ8051XNL_PHY_ID 0x00221550 /*! \brief PHY driver setup \ingroup PHY \synopsis \desc \b \this initializes \a self with functions that implement the PHY state machine for the Micrel KSZ8051xNL. */ void ksz8051xnl_phy_init_driver(CTL_NET_PHY_DRIVER_t *self); #endif