- refactored network
- fixed gpio_clr() git-svn-id: http://moon:8086/svn/mips@206 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
/** *******************************************************************************
|
||||
*
|
||||
* Project: Robotics library for the Autonomous Robotics Development Platform
|
||||
* Port by: Jorge Sánchez de Nova jssdn (mail)_(at) kth.se
|
||||
* Port by: Jorge S�nchez de Nova jssdn (mail)_(at) kth.se
|
||||
*
|
||||
* NOTE: This code is based on the Xilinx XAPP1042 which, as noted by Xilinx, is based in Linux Kernel's
|
||||
* drivers/net/fs_enet by Vitaly Bordug <vbordug@ru.mvista.com> and Pantelis Antoniou <panto@intracom.gr>
|
||||
@@ -67,15 +67,20 @@
|
||||
#define FIFTH_BIT_0x10 0x10
|
||||
#define MSB_16BITS_0x8000 0x8000
|
||||
|
||||
typedef struct _sMii_t
|
||||
{
|
||||
gpio_if_t gpio_mdio_data;
|
||||
gpio_if_t gpio_mdio_dir;
|
||||
|
||||
} Mii_t;
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include "gpio.h"
|
||||
#include <libsys/gpio.h>
|
||||
|
||||
uint32_t MiiGpio_PhyRead(gpio_if_t *mii_gpio, uint32_t PhyAddress, uint32_t RegisterNum);
|
||||
|
||||
void MiiGpio_PhyWrite(gpio_if_t *mii_gpio, uint32_t PhyAddress, uint32_t RegisterNum, uint16_t PhyData);
|
||||
|
||||
int MiiGpio_Init(gpio_if_t *mii_gpio);
|
||||
uint32_t MiiGpio_PhyRead(Mii_t *pObj, uint32_t PhyAddress, uint32_t RegisterNum);
|
||||
void MiiGpio_PhyWrite(Mii_t *pObj, uint32_t PhyAddress, uint32_t RegisterNum, uint16_t PhyData);
|
||||
void MiiGpio_Init(Mii_t *pObj);
|
||||
void MiiGpio_Reset(Mii_t *pObj);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user