added Firetos' radeon PCI driver

This commit is contained in:
Markus Fröschle
2013-12-26 21:20:47 +00:00
parent 9ca272dd76
commit 0d845e2c14
23 changed files with 9822 additions and 93 deletions

View File

@@ -9,7 +9,7 @@
#include <stdbool.h>
#include <stddef.h>
#define TIMER_NETWORK 0
#define TIMER_NETWORK 3
static uint8_t *arp_find_pair(ARP_INFO *arptab, uint16_t protocol, uint8_t *hwa, uint8_t *pa)
{

View File

@@ -11,7 +11,7 @@
#include <stddef.h>
#include "bas_printf.h"
#define TIMER_NETWORK 0
#define TIMER_NETWORK 3
static struct bootp_connection connection;
#define XID 0x1234 /* this is arbitrary */

View File

@@ -41,7 +41,7 @@ int nbuf_init(void)
}
#ifdef DEBUG_PRINT
printf("Creating %d net buffers of %d bytes\n",NBUF_MAX,NBUF_SZ);
printf("Creating %d net buffers of %d bytes\r\n",NBUF_MAX,NBUF_SZ);
#endif
for (i = 0; i < NBUF_MAX; ++i)
@@ -70,7 +70,7 @@ int nbuf_init(void)
queue_add(&nbuf_queue[NBUF_FREE], (QNODE *)nbuf);
}
xprintf("NBUF allocation complete\n");
xprintf("NBUF allocation complete\r\n");
return 0;
}

View File

@@ -50,7 +50,7 @@ void nif_protocol_handler(NIF *nif, uint16_t protocol, NBUF *pNbuf)
}
}
void *nif_get_protocol_info (NIF *nif, uint16_t protocol)
void *nif_get_protocol_info(NIF *nif, uint16_t protocol)
{
/*
* This function searches the list of supported protocols
@@ -67,9 +67,8 @@ void *nif_get_protocol_info (NIF *nif, uint16_t protocol)
return (void *)0;
}
int nif_bind_protocol (NIF *nif, uint16_t protocol,
void (*handler)(NIF *,NBUF *),
void *info)
int nif_bind_protocol(NIF *nif, uint16_t protocol, void (*handler)(NIF *,NBUF *),
void *info)
{
/*
* This function registers 'protocol' as a supported

View File

@@ -18,7 +18,7 @@
#include "net.h"
#include "net_timer.h"
#define TIMER_NETWORK 0
#define TIMER_NETWORK 3
/* The one and only TFTP connection */
static TFTP_Connection tcxn;

View File

@@ -135,10 +135,8 @@ int udp_send(NIF *nif, uint8_t *dest, int sport, int dport, NBUF *pNbuf)
/* Add the length of the UDP packet to the total length of the packet */
pNbuf->length += 8;
return (ip_send(nif, dest,
ip_get_myip(nif_get_protocol_info(nif, ETH_FRM_IP)),
IP_PROTO_UDP,
pNbuf));
return (ip_send(nif, dest, ip_get_myip(nif_get_protocol_info(nif, ETH_FRM_IP)),
IP_PROTO_UDP, pNbuf));
}
void udp_handler(NIF *nif, NBUF *pNbuf)