Changeset 6843a9c in mainline for kernel/arch/mips32/include/mm/km.h
- Timestamp:
- 2012-06-29T13:02:14Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 722912e
- Parents:
- ba72f2b (diff), 0bbd13e (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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/include/mm/km.h
rba72f2b r6843a9c 1 1 /* 2 * Copyright (c) 20 09 Lukas Mejdrech2 * Copyright (c) 2011 Jakub Jermar 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup udp29 /** @addtogroup mips32mm 30 30 * @{ 31 31 */ 32 33 32 /** @file 34 * UDP header definition.35 * Based on the RFC 768.36 33 */ 37 34 38 #ifndef NET_UDP_HEADER_H_39 #define NET_UDP_HEADER_H_35 #ifndef KERN_mips32_KM_H_ 36 #define KERN_mips32_KM_H_ 40 37 41 #include < sys/types.h>38 #include <typedefs.h> 42 39 43 /** UDP header size in bytes. */ 44 #define UDP_HEADER_SIZE sizeof(udp_header_t)40 #define KM_MIPS32_KSEG0_START UINT32_C(0x80000000) 41 #define KM_MIPS32_KSEG0_SIZE UINT32_C(0x20000000) 45 42 46 /** Type definition of the user datagram header. 47 * @see udp_header 48 */ 49 typedef struct udp_header udp_header_t; 43 #define KM_MIPS32_KSSEG_START UINT32_C(0xc0000000) 44 #define KM_MIPS32_KSSEG_SIZE UINT32_C(0x20000000) 50 45 51 /** User datagram header. */ 52 struct udp_header { 53 uint16_t source_port; 54 uint16_t destination_port; 55 uint16_t total_length; 56 uint16_t checksum; 57 } __attribute__ ((packed)); 46 #define KM_MIPS32_KSEG3_START UINT32_C(0xe0000000) 47 #define KM_MIPS32_KSEG3_SIZE UINT32_C(0x20000000) 48 49 extern void km_identity_arch_init(void); 50 extern void km_non_identity_arch_init(void); 51 extern bool km_is_non_identity_arch(uintptr_t); 58 52 59 53 #endif
Note:
See TracChangeset
for help on using the changeset viewer.