Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
cb8c1fdc
Commit
cb8c1fdc
authored
May 04, 2006
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use __uXX types in <linux/i2o_dev.h>, include <linux/ioctl.h> too
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
de654c97
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
80 additions
and
87 deletions
+80
-87
include/linux/i2o-dev.h
include/linux/i2o-dev.h
+80
-87
No files found.
include/linux/i2o-dev.h
View file @
cb8c1fdc
...
...
@@ -13,7 +13,7 @@
* This header file defines the I2O APIs that are available to both
* the kernel and user level applications. Kernel specific structures
* are defined in i2o_osm. OSMs should include _only_ i2o_osm.h which
* automatically includs this file.
* automatically includ
e
s this file.
*
*/
...
...
@@ -23,14 +23,7 @@
/* How many controllers are we allowing */
#define MAX_I2O_CONTROLLERS 32
//#include <linux/ioctl.h>
#ifndef __KERNEL__
typedef
unsigned
char
u8
;
typedef
unsigned
short
u16
;
typedef
unsigned
int
u32
;
#endif
/* __KERNEL__ */
#include <linux/ioctl.h>
/*
* I2O Control IOCTLs and structures
...
...
@@ -53,7 +46,7 @@ typedef unsigned int u32;
struct
i2o_cmd_passthru32
{
unsigned
int
iop
;
/* IOP unit number */
u32
msg
;
/* message */
__
u32
msg
;
/* message */
};
struct
i2o_cmd_passthru
{
...
...
@@ -138,53 +131,53 @@ typedef struct i2o_sg_io_hdr {
#define I2O_BUS_UNKNOWN 0x80
typedef
struct
_i2o_pci_bus
{
u8
PciFunctionNumber
;
u8
PciDeviceNumber
;
u8
PciBusNumber
;
u8
reserved
;
u16
PciVendorID
;
u16
PciDeviceID
;
__
u8
PciFunctionNumber
;
__
u8
PciDeviceNumber
;
__
u8
PciBusNumber
;
__
u8
reserved
;
__
u16
PciVendorID
;
__
u16
PciDeviceID
;
}
i2o_pci_bus
;
typedef
struct
_i2o_local_bus
{
u16
LbBaseIOPort
;
u16
reserved
;
u32
LbBaseMemoryAddress
;
__
u16
LbBaseIOPort
;
__
u16
reserved
;
__
u32
LbBaseMemoryAddress
;
}
i2o_local_bus
;
typedef
struct
_i2o_isa_bus
{
u16
IsaBaseIOPort
;
u8
CSN
;
u8
reserved
;
u32
IsaBaseMemoryAddress
;
__
u16
IsaBaseIOPort
;
__
u8
CSN
;
__
u8
reserved
;
__
u32
IsaBaseMemoryAddress
;
}
i2o_isa_bus
;
typedef
struct
_i2o_eisa_bus_info
{
u16
EisaBaseIOPort
;
u8
reserved
;
u8
EisaSlotNumber
;
u32
EisaBaseMemoryAddress
;
__
u16
EisaBaseIOPort
;
__
u8
reserved
;
__
u8
EisaSlotNumber
;
__
u32
EisaBaseMemoryAddress
;
}
i2o_eisa_bus
;
typedef
struct
_i2o_mca_bus
{
u16
McaBaseIOPort
;
u8
reserved
;
u8
McaSlotNumber
;
u32
McaBaseMemoryAddress
;
__
u16
McaBaseIOPort
;
__
u8
reserved
;
__
u8
McaSlotNumber
;
__
u32
McaBaseMemoryAddress
;
}
i2o_mca_bus
;
typedef
struct
_i2o_other_bus
{
u16
BaseIOPort
;
u16
reserved
;
u32
BaseMemoryAddress
;
__
u16
BaseIOPort
;
__
u16
reserved
;
__
u32
BaseMemoryAddress
;
}
i2o_other_bus
;
typedef
struct
_i2o_hrt_entry
{
u32
adapter_id
;
u32
parent_tid
:
12
;
u32
state
:
4
;
u32
bus_num
:
8
;
u32
bus_type
:
8
;
__
u32
adapter_id
;
__
u32
parent_tid
:
12
;
__
u32
state
:
4
;
__
u32
bus_num
:
8
;
__
u32
bus_type
:
8
;
union
{
i2o_pci_bus
pci_bus
;
i2o_local_bus
local_bus
;
...
...
@@ -196,66 +189,66 @@ typedef struct _i2o_hrt_entry {
}
i2o_hrt_entry
;
typedef
struct
_i2o_hrt
{
u16
num_entries
;
u8
entry_len
;
u8
hrt_version
;
u32
change_ind
;
__
u16
num_entries
;
__
u8
entry_len
;
__
u8
hrt_version
;
__
u32
change_ind
;
i2o_hrt_entry
hrt_entry
[
1
];
}
i2o_hrt
;
typedef
struct
_i2o_lct_entry
{
u32
entry_size
:
16
;
u32
tid
:
12
;
u32
reserved
:
4
;
u32
change_ind
;
u32
device_flags
;
u32
class_id
:
12
;
u32
version
:
4
;
u32
vendor_id
:
16
;
u32
sub_class
;
u32
user_tid
:
12
;
u32
parent_tid
:
12
;
u32
bios_info
:
8
;
u8
identity_tag
[
8
];
u32
event_capabilities
;
__
u32
entry_size
:
16
;
__
u32
tid
:
12
;
__
u32
reserved
:
4
;
__
u32
change_ind
;
__
u32
device_flags
;
__
u32
class_id
:
12
;
__
u32
version
:
4
;
__
u32
vendor_id
:
16
;
__
u32
sub_class
;
__
u32
user_tid
:
12
;
__
u32
parent_tid
:
12
;
__
u32
bios_info
:
8
;
__
u8
identity_tag
[
8
];
__
u32
event_capabilities
;
}
i2o_lct_entry
;
typedef
struct
_i2o_lct
{
u32
table_size
:
16
;
u32
boot_tid
:
12
;
u32
lct_ver
:
4
;
u32
iop_flags
;
u32
change_ind
;
__
u32
table_size
:
16
;
__
u32
boot_tid
:
12
;
__
u32
lct_ver
:
4
;
__
u32
iop_flags
;
__
u32
change_ind
;
i2o_lct_entry
lct_entry
[
1
];
}
i2o_lct
;
typedef
struct
_i2o_status_block
{
u16
org_id
;
u16
reserved
;
u16
iop_id
:
12
;
u16
reserved1
:
4
;
u16
host_unit_id
;
u16
segment_number
:
12
;
u16
i2o_version
:
4
;
u8
iop_state
;
u8
msg_type
;
u16
inbound_frame_size
;
u8
init_code
;
u8
reserved2
;
u32
max_inbound_frames
;
u32
cur_inbound_frames
;
u32
max_outbound_frames
;
__
u16
org_id
;
__
u16
reserved
;
__
u16
iop_id
:
12
;
__
u16
reserved1
:
4
;
__
u16
host_unit_id
;
__
u16
segment_number
:
12
;
__
u16
i2o_version
:
4
;
__
u8
iop_state
;
__
u8
msg_type
;
__
u16
inbound_frame_size
;
__
u8
init_code
;
__
u8
reserved2
;
__
u32
max_inbound_frames
;
__
u32
cur_inbound_frames
;
__
u32
max_outbound_frames
;
char
product_id
[
24
];
u32
expected_lct_size
;
u32
iop_capabilities
;
u32
desired_mem_size
;
u32
current_mem_size
;
u32
current_mem_base
;
u32
desired_io_size
;
u32
current_io_size
;
u32
current_io_base
;
u32
reserved3
:
24
;
u32
cmd_status
:
8
;
__
u32
expected_lct_size
;
__
u32
iop_capabilities
;
__
u32
desired_mem_size
;
__
u32
current_mem_size
;
__
u32
current_mem_base
;
__
u32
desired_io_size
;
__
u32
current_io_size
;
__
u32
current_io_base
;
__
u32
reserved3
:
24
;
__
u32
cmd_status
:
8
;
}
i2o_status_block
;
/* Event indicator mask flags */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment