Changeset 6843a9c in mainline for kernel/arch/mips32/include/mm/km.h


Ignore:
Timestamp:
2012-06-29T13:02:14Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
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.
Message:

Merge mainline changes

Trivial conflicts.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/include/mm/km.h

    rba72f2b r6843a9c  
    11/*
    2  * Copyright (c) 2009 Lukas Mejdrech
     2 * Copyright (c) 2011 Jakub Jermar
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup udp
     29/** @addtogroup mips32mm
    3030 * @{
    3131 */
    32 
    3332/** @file
    34  * UDP header definition.
    35  * Based on the RFC 768.
    3633 */
    3734
    38 #ifndef NET_UDP_HEADER_H_
    39 #define NET_UDP_HEADER_H_
     35#ifndef KERN_mips32_KM_H_
     36#define KERN_mips32_KM_H_
    4037
    41 #include <sys/types.h>
     38#include <typedefs.h>
    4239
    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)
    4542
    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)
    5045
    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
     49extern void km_identity_arch_init(void);
     50extern void km_non_identity_arch_init(void);
     51extern bool km_is_non_identity_arch(uintptr_t);
    5852
    5953#endif
Note: See TracChangeset for help on using the changeset viewer.