ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/dummy/ether_dummy.cpp
Revision: 1.3
Committed: 2001-02-02T20:52:59Z (23 years, 9 months ago) by cebix
Branch: MAIN
CVS Tags: snapshot-17022001, snapshot-29052001, release-0_9-1
Changes since 1.2: +1 -1 lines
Log Message:
- bumped version number to 0.9
- updated copyright dates

File Contents

# User Rev Content
1 cebix 1.1 /*
2     * ether_dummy.cpp - Ethernet device driver, dummy implementation
3     *
4 cebix 1.3 * Basilisk II (C) 1997-2001 Christian Bauer
5 cebix 1.1 *
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     #include "sysdeps.h"
22     #include "cpu_emulation.h"
23     #include "main.h"
24     #include "macos_util.h"
25     #include "prefs.h"
26     #include "user_strings.h"
27     #include "ether.h"
28     #include "ether_defs.h"
29    
30     #define DEBUG 0
31     #include "debug.h"
32    
33     #define MONITOR 0
34    
35    
36     /*
37     * Initialization
38     */
39    
40     void EtherInit(void)
41     {
42     }
43    
44    
45     /*
46     * Deinitialization
47     */
48    
49     void EtherExit(void)
50     {
51     }
52    
53    
54     /*
55     * Reset
56     */
57    
58     void EtherReset(void)
59     {
60     }
61    
62    
63     /*
64     * Add multicast address
65     */
66    
67     int16 ether_add_multicast(uint32 pb)
68     {
69     return noErr;
70     }
71    
72    
73     /*
74     * Delete multicast address
75     */
76    
77     int16 ether_del_multicast(uint32 pb)
78     {
79     return noErr;
80     }
81    
82    
83     /*
84     * Attach protocol handler
85     */
86    
87     int16 ether_attach_ph(uint16 type, uint32 handler)
88     {
89     return noErr;
90     }
91    
92    
93     /*
94     * Detach protocol handler
95     */
96    
97     int16 ether_detach_ph(uint16 type)
98     {
99     return noErr;
100     }
101    
102    
103     /*
104     * Transmit raw ethernet packet
105     */
106    
107     int16 ether_write(uint32 wds)
108     {
109     // Set source address
110     uint32 hdr = ReadMacInt32(wds + 2);
111     memcpy(Mac2HostAddr(hdr + 6), ether_addr, 6);
112     return noErr;
113     }
114    
115    
116     /*
117     * Ethernet interrupt - activate deferred tasks to call IODone or protocol handlers
118     */
119    
120     void EtherInterrupt(void)
121     {
122     }