UbixOS V2
2.0
device.old.h
Go to the documentation of this file.
1
/*-
2
* Copyright (c) 2002-2018 The UbixOS Project.
3
* All rights reserved.
4
*
5
* This was developed by Christopher W. Olsen for the UbixOS Project.
6
*
7
* Redistribution and use in source and binary forms, with or without modification, are permitted
8
* provided that the following conditions are met:
9
*
10
* 1) Redistributions of source code must retain the above copyright notice, this list of
11
* conditions, the following disclaimer and the list of authors.
12
* 2) Redistributions in binary form must reproduce the above copyright notice, this list of
13
* conditions, the following disclaimer and the list of authors in the documentation and/or
14
* other materials provided with the distribution.
15
* 3) Neither the name of the UbixOS Project nor the names of its contributors may be used to
16
* endorse or promote products derived from this software without specific prior written
17
* permission.
18
*
19
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
20
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
22
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
24
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
26
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
*/
28
29
#ifndef _DEVICE_H
30
#define _DEVICE_H
31
32
#include <
sys/types.h
>
33
34
struct
device
{
35
struct
net
*
net
;
36
uInt16
ioAddr
;
37
uInt32
irq
;
38
struct
ei_device
*
priv
;
39
uInt32
mtu
;
40
};
41
42
struct
net
{
43
char
mac
[6];
44
char
broadcast
[6];
45
};
46
47
struct
ei_device
{
48
int
txStartPage
;
49
int
rxStartPage
;
50
int
stopPage
;
51
int
currentPage
;
52
uInt16
word16
;
53
uInt32
pingPong
;
54
int
tx1
;
55
int
tx2
;
56
};
57
58
#endif
59
60
/***
61
END
62
***/
63
ei_device
Definition:
device.old.h:47
ei_device::rxStartPage
int rxStartPage
Definition:
device.old.h:49
uInt32
unsigned long int uInt32
Definition:
objgfx30.h:49
uInt16
unsigned short int uInt16
Definition:
objgfx30.h:48
ei_device::word16
uInt16 word16
Definition:
device.old.h:52
net::broadcast
char broadcast[6]
Definition:
device.old.h:44
device
Definition:
device.old.h:34
ei_device::tx1
int tx1
Definition:
device.old.h:54
device::priv
struct ei_device * priv
Definition:
device.old.h:38
types.h
ei_device::txStartPage
int txStartPage
Definition:
device.old.h:48
device::ioAddr
uInt16 ioAddr
Definition:
device.old.h:36
net::mac
char mac[6]
Definition:
device.old.h:43
device::net
struct net * net
Definition:
device.old.h:35
device::irq
uInt32 irq
Definition:
device.old.h:37
ei_device::tx2
int tx2
Definition:
device.old.h:55
net
Definition:
device.old.h:42
device::mtu
uInt32 mtu
Definition:
device.old.h:39
ei_device::pingPong
uInt32 pingPong
Definition:
device.old.h:53
ei_device::currentPage
int currentPage
Definition:
device.old.h:51
ei_device::stopPage
int stopPage
Definition:
device.old.h:50
C:
Dev
git
UbixOS
sys
include
sys
device.old.h
Generated by
1.8.16