mirror of
https://github.com/ipxe/ipxe
synced 2025-12-28 02:28:57 +03:00
eth_ntoa cleanup. still has warnings. needs work.
This commit is contained in:
@@ -38,13 +38,10 @@
|
|||||||
* Indent Options: indent -kr -i8
|
* Indent Options: indent -kr -i8
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
|
||||||
/* to get some global routines like printf */
|
|
||||||
#include "etherboot.h"
|
#include "etherboot.h"
|
||||||
/* to get the interface to the body of the program */
|
|
||||||
#include "nic.h"
|
#include "nic.h"
|
||||||
/* to get the PCI support functions, if this is a PCI NIC */
|
|
||||||
#include <gpxe/pci.h>
|
#include <gpxe/pci.h>
|
||||||
|
#include <gpxe/ethernet.h>
|
||||||
|
|
||||||
#include "via-velocity.h"
|
#include "via-velocity.h"
|
||||||
|
|
||||||
@@ -476,7 +473,7 @@ extern void hex_dump(const char *data, const unsigned int len);
|
|||||||
POLL - Wait for a frame
|
POLL - Wait for a frame
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
//EB53 static int velocity_poll(struct nic *nic, int retrieve)
|
//EB53 static int velocity_poll(struct nic *nic, int retrieve)
|
||||||
static int velocity_poll(struct nic *nic __unused)
|
static int velocity_poll(struct nic *nic __unused)
|
||||||
{
|
{
|
||||||
/* Work out whether or not there's an ethernet packet ready to
|
/* Work out whether or not there's an ethernet packet ready to
|
||||||
* read. Return 0 if not.
|
* read. Return 0 if not.
|
||||||
@@ -600,7 +597,7 @@ static void velocity_transmit(struct nic *nic, const char *dest, /* Destination
|
|||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
DISABLE - Turn off ethernet interface
|
DISABLE - Turn off ethernet interface
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
static void velocity_disable(struct dev *dev __unused)
|
static void velocity_disable(struct nic *nic __unused)
|
||||||
{
|
{
|
||||||
/* put the card in its initial state */
|
/* put the card in its initial state */
|
||||||
/* This function serves 3 purposes.
|
/* This function serves 3 purposes.
|
||||||
@@ -669,7 +666,7 @@ static struct nic_operations velocity_operations = {
|
|||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
PROBE - Look for an adapter, this routine's visible to the outside
|
PROBE - Look for an adapter, this routine's visible to the outside
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
static int velocity_probe(struct dev *dev, struct pci_device *pci)
|
static int velocity_probe(struct pci_device *dev, struct pci_device *pci)
|
||||||
{
|
{
|
||||||
struct nic *nic = (struct nic *) dev;
|
struct nic *nic = (struct nic *) dev;
|
||||||
int ret, i;
|
int ret, i;
|
||||||
@@ -708,8 +705,7 @@ static int velocity_probe(struct dev *dev, struct pci_device *pci)
|
|||||||
for (i = 0; i < 6; i++)
|
for (i = 0; i < 6; i++)
|
||||||
nic->node_addr[i] = readb(®s->PAR[i]);
|
nic->node_addr[i] = readb(®s->PAR[i]);
|
||||||
|
|
||||||
/* Print out some hardware info */
|
DBG ( "%s: %s at ioaddr %#hX\n", pci->name, eth_ntoa ( nic->node_addr ), BASE );
|
||||||
printf("%s: %! at ioaddr %hX, ", pci->name, nic->node_addr, BASE);
|
|
||||||
|
|
||||||
velocity_get_options(&vptr->options, 0, pci->name);
|
velocity_get_options(&vptr->options, 0, pci->name);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user