lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since 1d79c04 was 0166e99, checked in by jermar <jermar@…>, 17 years ago |
|
Merge the uspace branch.
|
-
Property mode
set to
100644
|
|
File size:
549 bytes
|
| Rev | Line | |
|---|
| [4a7c273] | 1 | /*
|
|---|
| 2 | * The PCI Library -- System-Dependent Stuff
|
|---|
| 3 | *
|
|---|
| 4 | * Copyright (c) 1997--2004 Martin Mares <mj@ucw.cz>
|
|---|
| 5 | *
|
|---|
| [8071af9f] | 6 | * May 8, 2006 - Modified and ported to HelenOS by Jakub Jermar.
|
|---|
| [4a7c273] | 7 | *
|
|---|
| 8 | * Can be freely distributed and used under the terms of the GNU GPL.
|
|---|
| 9 | */
|
|---|
| 10 |
|
|---|
| 11 | #ifdef __GNUC__
|
|---|
| 12 | #define UNUSED __attribute__((unused))
|
|---|
| 13 | #define NONRET __attribute__((noreturn))
|
|---|
| 14 | #else
|
|---|
| 15 | #define UNUSED
|
|---|
| 16 | #define NONRET
|
|---|
| 17 | #define inline
|
|---|
| 18 | #endif
|
|---|
| 19 |
|
|---|
| 20 | typedef u8 byte;
|
|---|
| 21 | typedef u16 word;
|
|---|
| 22 |
|
|---|
| 23 | #define cpu_to_le16(x) (x)
|
|---|
| 24 | #define cpu_to_le32(x) (x)
|
|---|
| 25 | #define le16_to_cpu(x) (x)
|
|---|
| 26 | #define le32_to_cpu(x) (x)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.