ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/include/ether.h
Revision: 1.3
Committed: 2005-01-30T21:48:21Z (19 years, 10 months ago) by gbeauche
Content type: text/plain
Branch: MAIN
Changes since 1.2: +1 -1 lines
Log Message:
Happy New Year 2005!

File Contents

# Content
1 /*
2 * ether.h - SheepShaver Ethernet Device Driver
3 *
4 * SheepShaver (C) 1997-2005 Marc Hellwig and Christian Bauer
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21 #ifndef ETHER_H
22 #define ETHER_H
23
24 struct queue;
25 struct msgb;
26 typedef struct queue queue_t;
27 typedef struct msgb mblk_t;
28
29 extern uint8 InitStreamModule(void *theID);
30 extern void TerminateStreamModule(void);
31 extern int ether_open(queue_t *rdq, void *dev, int flag, int sflag, void *creds);
32 extern int ether_close(queue_t *rdq, int flag, void *creds);
33 extern int ether_wput(queue_t *q, mblk_t *mp);
34 extern int ether_rsrv(queue_t *q);
35
36 // System specific and internal functions/data
37 extern void EtherInit(void);
38 extern void EtherExit(void);
39
40 extern void EtherIRQ(void);
41
42 extern void AO_get_ethernet_address(uint8 *addr);
43 extern void AO_enable_multicast(uint8 *addr);
44 extern void AO_disable_multicast(uint8 *addr);
45 extern void AO_transmit_packet(mblk_t *mp);
46
47 extern mblk_t *allocb(size_t size, int pri);
48 extern void OTEnterInterrupt(void);
49 extern void OTLeaveInterrupt(void);
50
51 extern void ether_packet_received(mblk_t *mp);
52
53 extern bool ether_driver_opened;
54
55 extern int32 num_wput;
56 extern int32 num_error_acks;
57 extern int32 num_tx_packets;
58 extern int32 num_tx_raw_packets;
59 extern int32 num_tx_normal_packets;
60 extern int32 num_tx_buffer_full;
61 extern int32 num_rx_packets;
62 extern int32 num_ether_irq;
63 extern int32 num_unitdata_ind;
64 extern int32 num_rx_fastpath;
65 extern int32 num_rx_no_mem;
66 extern int32 num_rx_dropped;
67 extern int32 num_rx_stream_not_ready;
68 extern int32 num_rx_no_unitdata_mem;
69
70 #endif