| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: types.h,v 1.1.2.6 2013/07/24 02:12:29 riastradh Exp $ */ | | 1 | /* $NetBSD: types.h,v 1.1.2.7 2013/07/24 02:50:51 riastradh Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2013 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 2013 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to The NetBSD Foundation | | 7 | * This code is derived from software contributed to The NetBSD Foundation |
8 | * by Taylor R. Campbell. | | 8 | * by Taylor R. Campbell. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -39,19 +39,25 @@ typedef uint8_t u8; | | | @@ -39,19 +39,25 @@ typedef uint8_t u8; |
39 | typedef uint16_t u16; | | 39 | typedef uint16_t u16; |
40 | typedef uint32_t u32; | | 40 | typedef uint32_t u32; |
41 | typedef uint64_t u64; | | 41 | typedef uint64_t u64; |
42 | | | 42 | |
43 | typedef int8_t s8; | | 43 | typedef int8_t s8; |
44 | typedef int16_t s16; | | 44 | typedef int16_t s16; |
45 | typedef int32_t s32; | | 45 | typedef int32_t s32; |
46 | typedef int64_t s64; | | 46 | typedef int64_t s64; |
47 | | | 47 | |
48 | typedef uint16_t __le16; | | 48 | typedef uint16_t __le16; |
49 | typedef uint32_t __le32; | | 49 | typedef uint32_t __le32; |
50 | typedef uint64_t __le64; | | 50 | typedef uint64_t __le64; |
51 | | | 51 | |
52 | typedef bus_size_t resource_size_t; | | 52 | /* |
| | | 53 | * This is used for absolute bus addresses, so it has to be bus_addr_t |
| | | 54 | * and not bus_size_t; bus_addr_t is sometimes wider than bus_size_t. |
| | | 55 | */ |
| | | 56 | typedef bus_addr_t resource_size_t; |
| | | 57 | |
| | | 58 | typedef paddr_t phys_addr_t; |
53 | | | 59 | |
54 | /* XXX Is this the right type? */ | | 60 | /* XXX Is this the right type? */ |
55 | typedef unsigned long long cycles_t; | | 61 | typedef unsigned long long cycles_t; |
56 | | | 62 | |
57 | #endif /* _LINUX_TYPES_H_ */ | | 63 | #endif /* _LINUX_TYPES_H_ */ |