summaryrefslogtreecommitdiffstats
path: root/c/src/libchip/network/README.cs8900
blob: 8d677a23ced4801425967497dc977c14572c5de2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
#  $Id$
#

Target Support
==============

The target is required to provide the low level support routines as
listed in the Configuration section of this file.

The file cs8900.c.bsp is an example BSP file for a Coldfire processor.

Conditionals
============
CS8900_DATA_BUS_SWAPPED - XXX

CS8900_TRACE - XXX

CS8900_VERBOSE - XXX

Todo
====
+ Build two versions -- one with swapped, one without.

+ Document conditionals.

+ Document each of the user supplied functions.

+ PC386 BSP wrapper for this.

Configuration
=============
The BSP provides these routines:

void cs8900_attach_interrupt (int dev, cs8900_device *cs);
void cs8900_detach_interrupt (int dev);
void cs8900_get_mac_addr (int dev, unsigned char *mac_address);
void cs8900_io_set_reg (int dev, unsigned short reg, unsigned short data);
unsigned short cs8900_io_get_reg (int dev, unsigned short reg);
void cs8900_mem_set_reg (int dev, unsigned long reg, unsigned short data);
unsigned short cs8900_mem_get_reg (int dev, unsigned long reg);
void cs8900_put_data_block (int dev, int len, unsigned char *data);
unsigned short cs8900_get_data_block (int dev, unsigned char *data);
void cs8900_tx_load (int dev, struct mbuf *m);