Changeset b5ba8f6 in mainline for uspace/lib/c/include
- Timestamp:
- 2013-09-13T13:11:53Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1eaa3cf
- Parents:
- 95027b5 (diff), 1c5f6f8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/lib/c/include
- Files:
-
- 8 edited
-
ddi.h (modified) (2 diffs)
-
device/hw_res.h (modified) (1 diff)
-
device/hw_res_parsed.h (modified) (3 diffs)
-
inet/addr.h (modified) (1 diff)
-
inet/inet.h (modified) (2 diffs)
-
ipc/socket.h (modified) (1 diff)
-
net/socket.h (modified) (1 diff)
-
net/socket_codes.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/ddi.h
r95027b5 rb5ba8f6 40 40 #include <sys/time.h> 41 41 #include <abi/ddi/irq.h> 42 #include <device/hw_res.h> 43 #include <device/hw_res_parsed.h> 44 #include <device/pio_window.h> 42 45 #include <task.h> 43 46 … … 55 58 extern int dmamem_unmap_anonymous(void *); 56 59 60 extern int pio_enable_range(addr_range_t *, void **); 61 extern int pio_enable_resource(pio_window_t *, hw_resource_t *, void **); 57 62 extern int pio_enable(void *, size_t, void **); 58 63 -
uspace/lib/c/include/device/hw_res.h
r95027b5 rb5ba8f6 76 76 struct { 77 77 uint64_t address; 78 size_t size; 79 bool relative; 78 80 endianness_t endianness; 79 size_t size;80 81 } mem_range; 81 82 82 83 struct { 83 84 uint64_t address; 85 size_t size; 86 bool relative; 84 87 endianness_t endianness; 85 size_t size;86 88 } io_range; 87 89 -
uspace/lib/c/include/device/hw_res_parsed.h
r95027b5 rb5ba8f6 37 37 38 38 #include <device/hw_res.h> 39 #include <device/pio_window.h> 39 40 #include <str.h> 40 41 … … 45 46 #define HW_RES_KEEP_DUPLICIT 0x2 46 47 48 49 #define RNGABS(rng) (rng).address.absolute 50 #define RNGREL(rng) (rng).address.relative 51 #define RNGSZ(rng) (rng).size 52 53 #define RNGABSPTR(rng) ((void *) ((uintptr_t) RNGABS((rng)))) 54 55 typedef struct address64 { 56 /** Aboslute address. */ 57 uint64_t absolute; 58 /** PIO window base relative address. */ 59 uint64_t relative; 60 } address64_t; 61 47 62 /** Address range structure */ 48 63 typedef struct addr_range { 49 64 /** Start address */ 50 uint64_t address; 51 52 /** Endianness */ 53 endianness_t endianness; 65 address64_t address; 54 66 55 67 /** Area size */ 56 68 size_t size; 69 70 /** Endianness */ 71 endianness_t endianness; 57 72 } addr_range_t; 58 73 … … 139 154 } 140 155 141 extern int hw_res_list_parse(const hw_resource_list_t *,156 extern int hw_res_list_parse(const pio_window_t *, const hw_resource_list_t *, 142 157 hw_res_list_parsed_t *, int); 143 158 extern int hw_res_get_list_parsed(async_sess_t *, hw_res_list_parsed_t *, int); -
uspace/lib/c/include/inet/addr.h
r95027b5 rb5ba8f6 68 68 } inet_naddr_t; 69 69 70 extern const addr32_t addr32_broadcast_all_hosts; 70 71 extern const addr48_t addr48_broadcast; 71 72 -
uspace/lib/c/include/inet/inet.h
r95027b5 rb5ba8f6 37 37 38 38 #include <inet/addr.h> 39 #include <ipc/loc.h> 39 40 #include <sys/types.h> 40 41 … … 42 43 43 44 typedef struct { 45 /** Local IP link service ID (optional) */ 46 service_id_t iplink; 44 47 inet_addr_t src; 45 48 inet_addr_t dest; -
uspace/lib/c/include/ipc/socket.h
r95027b5 rb5ba8f6 198 198 #define SOCKET_GET_OPT_NAME(call) \ 199 199 ({ \ 200 int opt_name = (int) IPC_GET_ARG 4(call); \200 int opt_name = (int) IPC_GET_ARG2(call); \ 201 201 opt_name; \ 202 202 }) -
uspace/lib/c/include/net/socket.h
r95027b5 rb5ba8f6 57 57 extern int connect(int, const struct sockaddr *, socklen_t); 58 58 extern int closesocket(int); 59 extern int send(int, void *, size_t, int);59 extern int send(int, const void *, size_t, int); 60 60 extern int sendto(int, const void *, size_t, int, const struct sockaddr *, 61 61 socklen_t); -
uspace/lib/c/include/net/socket_codes.h
r95027b5 rb5ba8f6 75 75 typedef int32_t socklen_t; 76 76 77 /* Socket options */ 78 79 enum { 80 SOL_SOCKET = 1, 81 82 /* IP link to transmit on */ 83 SO_IPLINK 84 }; 85 77 86 #endif 78 87
Note:
See TracChangeset
for help on using the changeset viewer.
