Merge git://git.infradead.org/mtd-2.6
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
|
||||
#include "hardware.h"
|
||||
.macro addruart,rx
|
||||
mrc p15, 0, \rx, c1, c0
|
||||
tst \rx, #1 @ MMU enabled?
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
*/
|
||||
#include <asm/arch/irqs.h>
|
||||
|
||||
.macro disable_fiq
|
||||
.endm
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
tst \rx, #1 @ MMU enabled?
|
||||
moveq \rx, #0x00000000 @ physical
|
||||
movne \rx, #0xe0000000 @ virtual
|
||||
orr \rx, \rx, #0x00200000
|
||||
orreq \rx, \rx, #0x00200000 @ physical
|
||||
orr \rx, \rx, #0x00006000 @ UART1 offset
|
||||
.endm
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#ifndef ASMARM_ARCH_UART_H
|
||||
#define ASMARM_ARCH_UART_H
|
||||
|
||||
#define IMXUART_HAVE_RTSCTS (1<<0)
|
||||
|
||||
struct imxuart_platform_data {
|
||||
unsigned int flags;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -260,6 +260,12 @@ out:
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_PCI
|
||||
|
||||
#define __io(v) v
|
||||
|
||||
#else
|
||||
|
||||
/*
|
||||
* IXP4xx does not have a transparent cpu -> PCI I/O translation
|
||||
* window. Instead, it has a set of registers that must be tweaked
|
||||
@@ -578,6 +584,7 @@ __ixp4xx_iowrite32_rep(void __iomem *addr, const void *vaddr, u32 count)
|
||||
|
||||
#define ioport_map(port, nr) ((void __iomem*)(port + PIO_OFFSET))
|
||||
#define ioport_unmap(addr)
|
||||
#endif // !CONFIG_PCI
|
||||
|
||||
#endif // __ASM_ARM_ARCH_IO_H
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
#define PHYS_OFFSET UL(0x00000000)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#if !defined(__ASSEMBLY__) && defined(CONFIG_PCI)
|
||||
|
||||
void ixp4xx_adjust_zones(int node, unsigned long *size, unsigned long *holes);
|
||||
|
||||
|
||||
@@ -24,27 +24,29 @@ typedef struct pxa_dma_desc {
|
||||
volatile u32 dcmd; /* DCMD value for the current transfer */
|
||||
} pxa_dma_desc;
|
||||
|
||||
typedef enum {
|
||||
DMA_PRIO_HIGH = 0,
|
||||
DMA_PRIO_MEDIUM = 1,
|
||||
DMA_PRIO_LOW = 2
|
||||
} pxa_dma_prio;
|
||||
|
||||
#if defined(CONFIG_PXA27x)
|
||||
|
||||
#define PXA_DMA_CHANNELS 32
|
||||
#define PXA_DMA_NBCH(prio) ((prio == DMA_PRIO_LOW) ? 16 : 8)
|
||||
|
||||
typedef enum {
|
||||
DMA_PRIO_HIGH = 0,
|
||||
DMA_PRIO_MEDIUM = 8,
|
||||
DMA_PRIO_LOW = 16
|
||||
} pxa_dma_prio;
|
||||
#define pxa_for_each_dma_prio(ch, prio) \
|
||||
for ( \
|
||||
ch = prio * 4; \
|
||||
ch != (4 << prio) + 16; \
|
||||
ch = (ch + 1 == (4 << prio)) ? (prio * 4 + 16) : (ch + 1) \
|
||||
)
|
||||
|
||||
#elif defined(CONFIG_PXA25x)
|
||||
|
||||
#define PXA_DMA_CHANNELS 16
|
||||
#define PXA_DMA_NBCH(prio) ((prio == DMA_PRIO_LOW) ? 8 : 4)
|
||||
|
||||
typedef enum {
|
||||
DMA_PRIO_HIGH = 0,
|
||||
DMA_PRIO_MEDIUM = 4,
|
||||
DMA_PRIO_LOW = 8
|
||||
} pxa_dma_prio;
|
||||
#define pxa_for_each_dma_prio(ch, prio) \
|
||||
for (ch = prio * 4; ch != (4 << prio); ch++)
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#define _ASMARM_BUG_H
|
||||
|
||||
#include <linux/config.h>
|
||||
#include <linux/stddef.h>
|
||||
|
||||
#ifdef CONFIG_BUG
|
||||
#ifdef CONFIG_DEBUG_BUGVERBOSE
|
||||
|
||||
@@ -363,7 +363,7 @@
|
||||
/*
|
||||
* The following syscalls are obsolete and no longer available for EABI.
|
||||
*/
|
||||
#if defined(__ARM_EABI__)
|
||||
#if defined(__ARM_EABI__) && !defined(__KERNEL__)
|
||||
#undef __NR_time
|
||||
#undef __NR_umount
|
||||
#undef __NR_stime
|
||||
@@ -410,7 +410,8 @@ type name(void) { \
|
||||
__asm__ __volatile__ ( \
|
||||
__syscall(name) \
|
||||
: "=r" (__res_r0) \
|
||||
: __SYS_REG_LIST() ); \
|
||||
: __SYS_REG_LIST() \
|
||||
: "memory" ); \
|
||||
__res = __res_r0; \
|
||||
__syscall_return(type,__res); \
|
||||
}
|
||||
@@ -424,7 +425,8 @@ type name(type1 arg1) { \
|
||||
__asm__ __volatile__ ( \
|
||||
__syscall(name) \
|
||||
: "=r" (__res_r0) \
|
||||
: __SYS_REG_LIST( "0" (__r0) ) ); \
|
||||
: __SYS_REG_LIST( "0" (__r0) ) \
|
||||
: "memory" ); \
|
||||
__res = __res_r0; \
|
||||
__syscall_return(type,__res); \
|
||||
}
|
||||
@@ -439,7 +441,8 @@ type name(type1 arg1,type2 arg2) { \
|
||||
__asm__ __volatile__ ( \
|
||||
__syscall(name) \
|
||||
: "=r" (__res_r0) \
|
||||
: __SYS_REG_LIST( "0" (__r0), "r" (__r1) ) ); \
|
||||
: __SYS_REG_LIST( "0" (__r0), "r" (__r1) ) \
|
||||
: "memory" ); \
|
||||
__res = __res_r0; \
|
||||
__syscall_return(type,__res); \
|
||||
}
|
||||
@@ -456,7 +459,8 @@ type name(type1 arg1,type2 arg2,type3 arg3) { \
|
||||
__asm__ __volatile__ ( \
|
||||
__syscall(name) \
|
||||
: "=r" (__res_r0) \
|
||||
: __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2) ) ); \
|
||||
: __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2) ) \
|
||||
: "memory" ); \
|
||||
__res = __res_r0; \
|
||||
__syscall_return(type,__res); \
|
||||
}
|
||||
@@ -474,7 +478,8 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4) { \
|
||||
__asm__ __volatile__ ( \
|
||||
__syscall(name) \
|
||||
: "=r" (__res_r0) \
|
||||
: __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2), "r" (__r3) ) ); \
|
||||
: __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2), "r" (__r3) ) \
|
||||
: "memory" ); \
|
||||
__res = __res_r0; \
|
||||
__syscall_return(type,__res); \
|
||||
}
|
||||
@@ -494,7 +499,8 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) { \
|
||||
__syscall(name) \
|
||||
: "=r" (__res_r0) \
|
||||
: __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2), \
|
||||
"r" (__r3), "r" (__r4) ) ); \
|
||||
"r" (__r3), "r" (__r4) ) \
|
||||
: "memory" ); \
|
||||
__res = __res_r0; \
|
||||
__syscall_return(type,__res); \
|
||||
}
|
||||
@@ -514,7 +520,8 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5, type6 arg6
|
||||
__syscall(name) \
|
||||
: "=r" (__res_r0) \
|
||||
: __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2), \
|
||||
"r" (__r3), "r" (__r4), "r" (__r5) ) ); \
|
||||
"r" (__r3), "r" (__r4), "r" (__r5) ) \
|
||||
: "memory" ); \
|
||||
__res = __res_r0; \
|
||||
__syscall_return(type,__res); \
|
||||
}
|
||||
|
||||
@@ -200,6 +200,7 @@ extern int io_apic_get_unique_id (int ioapic, int apic_id);
|
||||
extern int io_apic_get_version (int ioapic);
|
||||
extern int io_apic_get_redir_entries (int ioapic);
|
||||
extern int io_apic_set_pci_routing (int ioapic, int pin, int irq, int edge_level, int active_high_low);
|
||||
extern int timer_uses_ioapic_pin_0;
|
||||
#endif /* CONFIG_ACPI */
|
||||
|
||||
extern int (*ioapic_renumber_irq)(int ioapic, int irq);
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/types.h>
|
||||
#include <asm/bitops.h>
|
||||
#include <asm/intrinsics.h>
|
||||
|
||||
/**
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <linux/sched.h>
|
||||
#include <linux/errno.h>
|
||||
#include <asm/processor.h>
|
||||
#include <asm/page.h>
|
||||
|
||||
#define VERIFY_READ 0
|
||||
#define VERIFY_WRITE 1
|
||||
@@ -179,9 +180,11 @@ do { \
|
||||
#define __put_user_nocheck(x, ptr, size) \
|
||||
({ \
|
||||
long __pu_err; \
|
||||
might_sleep(); \
|
||||
__typeof__(*(ptr)) __user *__pu_addr = (ptr); \
|
||||
if (!is_kernel_addr((unsigned long)__pu_addr)) \
|
||||
might_sleep(); \
|
||||
__chk_user_ptr(ptr); \
|
||||
__put_user_size((x), (ptr), (size), __pu_err); \
|
||||
__put_user_size((x), __pu_addr, (size), __pu_err); \
|
||||
__pu_err; \
|
||||
})
|
||||
|
||||
@@ -258,9 +261,11 @@ do { \
|
||||
({ \
|
||||
long __gu_err; \
|
||||
unsigned long __gu_val; \
|
||||
const __typeof__(*(ptr)) __user *__gu_addr = (ptr); \
|
||||
__chk_user_ptr(ptr); \
|
||||
might_sleep(); \
|
||||
__get_user_size(__gu_val, (ptr), (size), __gu_err); \
|
||||
if (!is_kernel_addr((unsigned long)__gu_addr)) \
|
||||
might_sleep(); \
|
||||
__get_user_size(__gu_val, __gu_addr, (size), __gu_err); \
|
||||
(x) = (__typeof__(*(ptr)))__gu_val; \
|
||||
__gu_err; \
|
||||
})
|
||||
@@ -270,9 +275,11 @@ do { \
|
||||
({ \
|
||||
long __gu_err; \
|
||||
long long __gu_val; \
|
||||
const __typeof__(*(ptr)) __user *__gu_addr = (ptr); \
|
||||
__chk_user_ptr(ptr); \
|
||||
might_sleep(); \
|
||||
__get_user_size(__gu_val, (ptr), (size), __gu_err); \
|
||||
if (!is_kernel_addr((unsigned long)__gu_addr)) \
|
||||
might_sleep(); \
|
||||
__get_user_size(__gu_val, __gu_addr, (size), __gu_err); \
|
||||
(x) = (__typeof__(*(ptr)))__gu_val; \
|
||||
__gu_err; \
|
||||
})
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#define CPM_CR_INIT_TX ((ushort)0x0002)
|
||||
#define CPM_CR_HUNT_MODE ((ushort)0x0003)
|
||||
#define CPM_CR_STOP_TX ((ushort)0x0004)
|
||||
#define CPM_CR_GRA_STOP_TX ((ushort)0x0005)
|
||||
#define CPM_CR_RESTART_TX ((ushort)0x0006)
|
||||
#define CPM_CR_CLOSE_RX_BD ((ushort)0x0007)
|
||||
#define CPM_CR_SET_GADDR ((ushort)0x0008)
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
#define CPM_CR_INIT_TX ((ushort)0x0002)
|
||||
#define CPM_CR_HUNT_MODE ((ushort)0x0003)
|
||||
#define CPM_CR_STOP_TX ((ushort)0x0004)
|
||||
#define CPM_CR_GRA_STOP_TX ((ushort)0x0005)
|
||||
#define CPM_CR_GRA_STOP_TX ((ushort)0x0005)
|
||||
#define CPM_CR_RESTART_TX ((ushort)0x0006)
|
||||
#define CPM_CR_SET_GADDR ((ushort)0x0008)
|
||||
#define CPM_CR_START_IDMA ((ushort)0x0009)
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
/* This must match what is in arch/ppc/Makefile */
|
||||
#define PAGE_OFFSET CONFIG_KERNEL_START
|
||||
#define KERNELBASE PAGE_OFFSET
|
||||
#define is_kernel_addr(x) ((x) >= PAGE_OFFSET)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
|
||||
@@ -296,8 +296,14 @@
|
||||
#define __NR_pselect6 301
|
||||
#define __NR_ppoll 302
|
||||
#define __NR_unshare 303
|
||||
#define __NR_set_robust_list 304
|
||||
#define __NR_get_robust_list 305
|
||||
#define __NR_splice 306
|
||||
#define __NR_sync_file_range 307
|
||||
#define __NR_tee 308
|
||||
#define __NR_vmsplice 309
|
||||
|
||||
#define NR_syscalls 304
|
||||
#define NR_syscalls 310
|
||||
|
||||
/*
|
||||
* There are some system calls that are not present on 64 bit, some
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
#define __NR_capset 22 /* Linux Specific */
|
||||
#define __NR_setuid 23 /* Implemented via setreuid in SunOS */
|
||||
#define __NR_getuid 24 /* Common */
|
||||
/* #define __NR_time alias 25 ENOSYS under SunOS */
|
||||
#define __NR_vmsplice 25 /* ENOSYS under SunOS */
|
||||
#define __NR_ptrace 26 /* Common */
|
||||
#define __NR_alarm 27 /* Implemented via setitimer in SunOS */
|
||||
#define __NR_sigaltstack 28 /* Common */
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
#define __NR_capset 22 /* Linux Specific */
|
||||
#define __NR_setuid 23 /* Implemented via setreuid in SunOS */
|
||||
#define __NR_getuid 24 /* Common */
|
||||
/* #define __NR_time alias 25 ENOSYS under SunOS */
|
||||
#define __NR_vmsplice 25 /* ENOSYS under SunOS */
|
||||
#define __NR_ptrace 26 /* Common */
|
||||
#define __NR_alarm 27 /* Implemented via setitimer in SunOS */
|
||||
#define __NR_sigaltstack 28 /* Common */
|
||||
|
||||
@@ -59,6 +59,8 @@ extern void __init parse_memopt(char *p, char **end);
|
||||
extern void __init parse_memmapopt(char *p, char **end);
|
||||
|
||||
extern struct e820map e820;
|
||||
|
||||
extern unsigned ebda_addr, ebda_size;
|
||||
#endif/*!__ASSEMBLY__*/
|
||||
|
||||
#endif/*__E820_HEADER*/
|
||||
|
||||
@@ -205,6 +205,7 @@ extern int skip_ioapic_setup;
|
||||
extern int io_apic_get_version (int ioapic);
|
||||
extern int io_apic_get_redir_entries (int ioapic);
|
||||
extern int io_apic_set_pci_routing (int ioapic, int pin, int irq, int, int);
|
||||
extern int timer_uses_ioapic_pin_0;
|
||||
#endif
|
||||
|
||||
extern int sis_apic_bug; /* dummy */
|
||||
|
||||
@@ -200,6 +200,7 @@ extern int class_device_create_file(struct class_device *,
|
||||
* @node: for internal use by the driver core only.
|
||||
* @kobj: for internal use by the driver core only.
|
||||
* @devt_attr: for internal use by the driver core only.
|
||||
* @groups: optional additional groups to be created
|
||||
* @dev: if set, a symlink to the struct device is created in the sysfs
|
||||
* directory for this struct class device.
|
||||
* @class_data: pointer to whatever you want to store here for this struct
|
||||
@@ -228,6 +229,7 @@ struct class_device {
|
||||
struct device * dev; /* not necessary, but nice to have */
|
||||
void * class_data; /* class-specific data */
|
||||
struct class_device *parent; /* parent of this child device, if there is one */
|
||||
struct attribute_group ** groups; /* optional groups */
|
||||
|
||||
void (*release)(struct class_device *dev);
|
||||
int (*uevent)(struct class_device *dev, char **envp,
|
||||
|
||||
@@ -14,6 +14,7 @@ enum dma_data_direction {
|
||||
};
|
||||
|
||||
#define DMA_64BIT_MASK 0xffffffffffffffffULL
|
||||
#define DMA_48BIT_MASK 0x0000ffffffffffffULL
|
||||
#define DMA_40BIT_MASK 0x000000ffffffffffULL
|
||||
#define DMA_39BIT_MASK 0x0000007fffffffffULL
|
||||
#define DMA_32BIT_MASK 0x00000000ffffffffULL
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Platform information definitions for the CPM Uart driver.
|
||||
*
|
||||
* 2006 (c) MontaVista Software, Inc.
|
||||
* Vitaly Bordug <vbordug@ru.mvista.com>
|
||||
*
|
||||
* This file is licensed under the terms of the GNU General Public License
|
||||
* version 2. This program is licensed "as is" without any warranty of any
|
||||
* kind, whether express or implied.
|
||||
*/
|
||||
|
||||
#ifndef FS_UART_PD_H
|
||||
#define FS_UART_PD_H
|
||||
|
||||
#include <linux/version.h>
|
||||
#include <asm/types.h>
|
||||
|
||||
enum fs_uart_id {
|
||||
fsid_smc1_uart,
|
||||
fsid_smc2_uart,
|
||||
fsid_scc1_uart,
|
||||
fsid_scc2_uart,
|
||||
fsid_scc3_uart,
|
||||
fsid_scc4_uart,
|
||||
fs_uart_nr,
|
||||
};
|
||||
|
||||
static inline int fs_uart_id_scc2fsid(int id)
|
||||
{
|
||||
return fsid_scc1_uart + id - 1;
|
||||
}
|
||||
|
||||
static inline int fs_uart_id_fsid2scc(int id)
|
||||
{
|
||||
return id - fsid_scc1_uart + 1;
|
||||
}
|
||||
|
||||
static inline int fs_uart_id_smc2fsid(int id)
|
||||
{
|
||||
return fsid_smc1_uart + id - 1;
|
||||
}
|
||||
|
||||
static inline int fs_uart_id_fsid2smc(int id)
|
||||
{
|
||||
return id - fsid_smc1_uart + 1;
|
||||
}
|
||||
|
||||
struct fs_uart_platform_info {
|
||||
void(*init_ioports)(void);
|
||||
/* device specific information */
|
||||
int fs_no; /* controller index */
|
||||
u32 uart_clk;
|
||||
u8 tx_num_fifo;
|
||||
u8 tx_buf_size;
|
||||
u8 rx_num_fifo;
|
||||
u8 rx_buf_size;
|
||||
u8 brg;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -94,11 +94,11 @@
|
||||
|
||||
typedef struct {
|
||||
uint32_t v32;
|
||||
} __attribute__((packed)) jint32_t;
|
||||
} __attribute__((packed)) jint32_t;
|
||||
|
||||
typedef struct {
|
||||
uint32_t m;
|
||||
} __attribute__((packed)) jmode_t;
|
||||
} __attribute__((packed)) jmode_t;
|
||||
|
||||
typedef struct {
|
||||
uint16_t v16;
|
||||
@@ -111,7 +111,7 @@ struct jffs2_unknown_node
|
||||
jint16_t nodetype;
|
||||
jint32_t totlen; /* So we can skip over nodes we don't grok */
|
||||
jint32_t hdr_crc;
|
||||
} __attribute__((packed));
|
||||
};
|
||||
|
||||
struct jffs2_raw_dirent
|
||||
{
|
||||
@@ -129,7 +129,7 @@ struct jffs2_raw_dirent
|
||||
jint32_t node_crc;
|
||||
jint32_t name_crc;
|
||||
uint8_t name[0];
|
||||
} __attribute__((packed));
|
||||
};
|
||||
|
||||
/* The JFFS2 raw inode structure: Used for storage on physical media. */
|
||||
/* The uid, gid, atime, mtime and ctime members could be longer, but
|
||||
@@ -161,7 +161,7 @@ struct jffs2_raw_inode
|
||||
jint32_t data_crc; /* CRC for the (compressed) data. */
|
||||
jint32_t node_crc; /* CRC for the raw inode (excluding data) */
|
||||
uint8_t data[0];
|
||||
} __attribute__((packed));
|
||||
};
|
||||
|
||||
struct jffs2_raw_xattr {
|
||||
jint16_t magic;
|
||||
@@ -201,7 +201,7 @@ struct jffs2_raw_summary
|
||||
jint32_t sum_crc; /* summary information crc */
|
||||
jint32_t node_crc; /* node crc */
|
||||
jint32_t sum[0]; /* inode summary info */
|
||||
} __attribute__((packed));
|
||||
};
|
||||
|
||||
union jffs2_node_union
|
||||
{
|
||||
|
||||
@@ -124,6 +124,7 @@ extern int get_option(char **str, int *pint);
|
||||
extern char *get_options(const char *str, int nints, int *ints);
|
||||
extern unsigned long long memparse(char *ptr, char **retptr);
|
||||
|
||||
extern int core_kernel_text(unsigned long addr);
|
||||
extern int __kernel_text_address(unsigned long addr);
|
||||
extern int kernel_text_address(unsigned long addr);
|
||||
extern int session_of_pgrp(int pgrp);
|
||||
|
||||
@@ -28,6 +28,7 @@ struct mmc_csd {
|
||||
unsigned short cmdclass;
|
||||
unsigned short tacc_clks;
|
||||
unsigned int tacc_ns;
|
||||
unsigned int r2w_factor;
|
||||
unsigned int max_dtr;
|
||||
unsigned int read_blkbits;
|
||||
unsigned int write_blkbits;
|
||||
|
||||
@@ -61,7 +61,7 @@ struct mtd_info {
|
||||
u_int32_t flags;
|
||||
u_int32_t size; // Total size of the MTD
|
||||
|
||||
/* "Major" erase size for the device. Naïve users may take this
|
||||
/* "Major" erase size for the device. Naïve users may take this
|
||||
* to be the only erase size available, or may use the more detailed
|
||||
* information below if they desire
|
||||
*/
|
||||
|
||||
@@ -15,10 +15,7 @@
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_MTD_PHYSMAP__
|
||||
|
||||
#include <linux/config.h>
|
||||
|
||||
#if defined(CONFIG_MTD_PHYSMAP)
|
||||
#define __LINUX_MTD_PHYSMAP__
|
||||
|
||||
#include <linux/mtd/mtd.h>
|
||||
#include <linux/mtd/map.h>
|
||||
@@ -37,7 +34,7 @@ struct physmap_flash_data {
|
||||
void physmap_configure(unsigned long addr, unsigned long size,
|
||||
int bankwidth, void (*set_vpp)(struct map_info *, int) );
|
||||
|
||||
#if defined(CONFIG_MTD_PARTITIONS)
|
||||
#ifdef CONFIG_MTD_PARTITIONS
|
||||
|
||||
/*
|
||||
* Machines that wish to do flash partition may want to call this function in
|
||||
@@ -51,6 +48,5 @@ void physmap_configure(unsigned long addr, unsigned long size,
|
||||
void physmap_set_partitions(struct mtd_partition *parts, int num_parts);
|
||||
|
||||
#endif /* defined(CONFIG_MTD_PARTITIONS) */
|
||||
#endif /* defined(CONFIG_MTD) */
|
||||
|
||||
#endif /* __LINUX_MTD_PHYSMAP__ */
|
||||
|
||||
+11
-12
@@ -433,8 +433,7 @@ struct net_device
|
||||
|
||||
/* register/unregister state machine */
|
||||
enum { NETREG_UNINITIALIZED=0,
|
||||
NETREG_REGISTERING, /* called register_netdevice */
|
||||
NETREG_REGISTERED, /* completed register todo */
|
||||
NETREG_REGISTERED, /* completed register_netdevice */
|
||||
NETREG_UNREGISTERING, /* called unregister_netdevice */
|
||||
NETREG_UNREGISTERED, /* completed unregister todo */
|
||||
NETREG_RELEASED, /* called free_netdev */
|
||||
@@ -506,6 +505,8 @@ struct net_device
|
||||
|
||||
/* class/net/name entry */
|
||||
struct class_device class_dev;
|
||||
/* space for optional statistics and wireless sysfs groups */
|
||||
struct attribute_group *sysfs_groups[3];
|
||||
};
|
||||
|
||||
#define NETDEV_ALIGN 32
|
||||
@@ -829,21 +830,19 @@ static inline void netif_rx_schedule(struct net_device *dev)
|
||||
__netif_rx_schedule(dev);
|
||||
}
|
||||
|
||||
|
||||
static inline void __netif_rx_reschedule(struct net_device *dev, int undo)
|
||||
{
|
||||
dev->quota += undo;
|
||||
list_add_tail(&dev->poll_list, &__get_cpu_var(softnet_data).poll_list);
|
||||
__raise_softirq_irqoff(NET_RX_SOFTIRQ);
|
||||
}
|
||||
|
||||
/* Try to reschedule poll. Called by dev->poll() after netif_rx_complete(). */
|
||||
/* Try to reschedule poll. Called by dev->poll() after netif_rx_complete().
|
||||
* Do not inline this?
|
||||
*/
|
||||
static inline int netif_rx_reschedule(struct net_device *dev, int undo)
|
||||
{
|
||||
if (netif_rx_schedule_prep(dev)) {
|
||||
unsigned long flags;
|
||||
|
||||
dev->quota += undo;
|
||||
|
||||
local_irq_save(flags);
|
||||
__netif_rx_reschedule(dev, undo);
|
||||
list_add_tail(&dev->poll_list, &__get_cpu_var(softnet_data).poll_list);
|
||||
__raise_softirq_irqoff(NET_RX_SOFTIRQ);
|
||||
local_irq_restore(flags);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* ip_conntrack_helper_h323_asn1.h - BER and PER decoding library for H.323
|
||||
* conntrack/NAT module.
|
||||
*
|
||||
* Copyright (c) 2006 by Jing Min Zhao <zhaojingmin@hotmail.com>
|
||||
* Copyright (c) 2006 by Jing Min Zhao <zhaojingmin@users.sourceforge.net>
|
||||
*
|
||||
* This source code is licensed under General Public License version 2.
|
||||
*
|
||||
|
||||
@@ -5,8 +5,9 @@
|
||||
|
||||
#define PIPE_BUFFERS (16)
|
||||
|
||||
#define PIPE_BUF_FLAG_ATOMIC 0x01 /* was atomically mapped */
|
||||
#define PIPE_BUF_FLAG_GIFT 0x02 /* page is a gift */
|
||||
#define PIPE_BUF_FLAG_LRU 0x01 /* page is on the LRU */
|
||||
#define PIPE_BUF_FLAG_ATOMIC 0x02 /* was atomically mapped */
|
||||
#define PIPE_BUF_FLAG_GIFT 0x04 /* page is a gift */
|
||||
|
||||
struct pipe_buffer {
|
||||
struct page *page;
|
||||
|
||||
@@ -132,6 +132,7 @@ static inline void rcu_bh_qsctr_inc(int cpu)
|
||||
}
|
||||
|
||||
extern int rcu_pending(int cpu);
|
||||
extern int rcu_needs_cpu(int cpu);
|
||||
|
||||
/**
|
||||
* rcu_read_lock - mark the beginning of an RCU read-side critical section.
|
||||
|
||||
@@ -254,6 +254,7 @@ struct uart_port {
|
||||
#define UPF_CONS_FLOW ((__force upf_t) (1 << 23))
|
||||
#define UPF_SHARE_IRQ ((__force upf_t) (1 << 24))
|
||||
#define UPF_BOOT_AUTOCONF ((__force upf_t) (1 << 28))
|
||||
#define UPF_DEAD ((__force upf_t) (1 << 30))
|
||||
#define UPF_IOREMAP ((__force upf_t) (1 << 31))
|
||||
|
||||
#define UPF_CHANGE_MASK ((__force upf_t) (0x17fff))
|
||||
|
||||
@@ -150,6 +150,7 @@ static inline void *kcalloc(size_t n, size_t size, gfp_t flags)
|
||||
|
||||
extern void kfree(const void *);
|
||||
extern unsigned int ksize(const void *);
|
||||
extern int slab_is_available(void);
|
||||
|
||||
#ifdef CONFIG_NUMA
|
||||
extern void *kmem_cache_alloc_node(kmem_cache_t *, gfp_t flags, int node);
|
||||
|
||||
@@ -296,7 +296,7 @@ static inline void disable_swap_token(void)
|
||||
#define read_swap_cache_async(swp,vma,addr) NULL
|
||||
#define lookup_swap_cache(swp) NULL
|
||||
#define valid_swaphandles(swp, off) 0
|
||||
#define can_share_swap_page(p) 0
|
||||
#define can_share_swap_page(p) (page_mapcount(p) == 1)
|
||||
#define move_to_swap_cache(p, swp) 1
|
||||
#define move_from_swap_cache(p, i, m) 1
|
||||
#define __delete_from_swap_cache(p) /*NOTHING*/
|
||||
|
||||
+5
-5
@@ -145,14 +145,14 @@ enum {
|
||||
#define AX25_DEF_CONMODE 2 /* Connected mode allowed */
|
||||
#define AX25_DEF_WINDOW 2 /* Window=2 */
|
||||
#define AX25_DEF_EWINDOW 32 /* Module-128 Window=32 */
|
||||
#define AX25_DEF_T1 (10 * HZ) /* T1=10s */
|
||||
#define AX25_DEF_T2 (3 * HZ) /* T2=3s */
|
||||
#define AX25_DEF_T3 (300 * HZ) /* T3=300s */
|
||||
#define AX25_DEF_T1 10000 /* T1=10s */
|
||||
#define AX25_DEF_T2 3000 /* T2=3s */
|
||||
#define AX25_DEF_T3 300000 /* T3=300s */
|
||||
#define AX25_DEF_N2 10 /* N2=10 */
|
||||
#define AX25_DEF_IDLE (0 * 60 * HZ) /* Idle=None */
|
||||
#define AX25_DEF_IDLE 0 /* Idle=None */
|
||||
#define AX25_DEF_PACLEN 256 /* Paclen=256 */
|
||||
#define AX25_DEF_PROTOCOL AX25_PROTO_STD_SIMPLEX /* Standard AX.25 */
|
||||
#define AX25_DEF_DS_TIMEOUT (3 * 60 * HZ) /* DAMA timeout 3 minutes */
|
||||
#define AX25_DEF_DS_TIMEOUT 180000 /* DAMA timeout 3 minutes */
|
||||
|
||||
typedef struct ax25_uid_assoc {
|
||||
struct hlist_node uid_node;
|
||||
|
||||
@@ -955,11 +955,13 @@ enum ieee80211_state {
|
||||
|
||||
#define IEEE80211_24GHZ_MIN_CHANNEL 1
|
||||
#define IEEE80211_24GHZ_MAX_CHANNEL 14
|
||||
#define IEEE80211_24GHZ_CHANNELS 14
|
||||
#define IEEE80211_24GHZ_CHANNELS (IEEE80211_24GHZ_MAX_CHANNEL - \
|
||||
IEEE80211_24GHZ_MIN_CHANNEL + 1)
|
||||
|
||||
#define IEEE80211_52GHZ_MIN_CHANNEL 34
|
||||
#define IEEE80211_52GHZ_MAX_CHANNEL 165
|
||||
#define IEEE80211_52GHZ_CHANNELS 131
|
||||
#define IEEE80211_52GHZ_CHANNELS (IEEE80211_52GHZ_MAX_CHANNEL - \
|
||||
IEEE80211_52GHZ_MIN_CHANNEL + 1)
|
||||
|
||||
enum {
|
||||
IEEE80211_CH_PASSIVE_ONLY = (1 << 0),
|
||||
|
||||
@@ -204,7 +204,8 @@ struct ieee80211softmac_device {
|
||||
|
||||
/* couple of flags */
|
||||
u8 scanning:1, /* protects scanning from being done multiple times at once */
|
||||
associated:1;
|
||||
associated:1,
|
||||
running:1;
|
||||
|
||||
struct ieee80211softmac_scaninfo *scaninfo;
|
||||
struct ieee80211softmac_assoc_info associnfo;
|
||||
|
||||
@@ -211,6 +211,7 @@ struct neigh_table
|
||||
#define NEIGH_UPDATE_F_ADMIN 0x80000000
|
||||
|
||||
extern void neigh_table_init(struct neigh_table *tbl);
|
||||
extern void neigh_table_init_no_netlink(struct neigh_table *tbl);
|
||||
extern int neigh_table_clear(struct neigh_table *tbl);
|
||||
extern struct neighbour * neigh_lookup(struct neigh_table *tbl,
|
||||
const void *pkey,
|
||||
|
||||
@@ -42,11 +42,11 @@ enum {
|
||||
#define NR_COND_PEER_RX_BUSY 0x04
|
||||
#define NR_COND_OWN_RX_BUSY 0x08
|
||||
|
||||
#define NR_DEFAULT_T1 (120 * HZ) /* Outstanding frames - 120 seconds */
|
||||
#define NR_DEFAULT_T2 (5 * HZ) /* Response delay - 5 seconds */
|
||||
#define NR_DEFAULT_T1 120000 /* Outstanding frames - 120 seconds */
|
||||
#define NR_DEFAULT_T2 5000 /* Response delay - 5 seconds */
|
||||
#define NR_DEFAULT_N2 3 /* Number of Retries - 3 */
|
||||
#define NR_DEFAULT_T4 (180 * HZ) /* Busy Delay - 180 seconds */
|
||||
#define NR_DEFAULT_IDLE (0 * 60 * HZ) /* No Activity Timeout - none */
|
||||
#define NR_DEFAULT_T4 180000 /* Busy Delay - 180 seconds */
|
||||
#define NR_DEFAULT_IDLE 0 /* No Activity Timeout - none */
|
||||
#define NR_DEFAULT_WINDOW 4 /* Default Window Size - 4 */
|
||||
#define NR_DEFAULT_OBS 6 /* Default Obsolescence Count - 6 */
|
||||
#define NR_DEFAULT_QUAL 10 /* Default Neighbour Quality - 10 */
|
||||
|
||||
+7
-7
@@ -49,14 +49,14 @@ enum {
|
||||
ROSE_STATE_5 /* Deferred Call Acceptance */
|
||||
};
|
||||
|
||||
#define ROSE_DEFAULT_T0 (180 * HZ) /* Default T10 T20 value */
|
||||
#define ROSE_DEFAULT_T1 (200 * HZ) /* Default T11 T21 value */
|
||||
#define ROSE_DEFAULT_T2 (180 * HZ) /* Default T12 T22 value */
|
||||
#define ROSE_DEFAULT_T3 (180 * HZ) /* Default T13 T23 value */
|
||||
#define ROSE_DEFAULT_HB (5 * HZ) /* Default Holdback value */
|
||||
#define ROSE_DEFAULT_IDLE (0 * 60 * HZ) /* No Activity Timeout - none */
|
||||
#define ROSE_DEFAULT_T0 180000 /* Default T10 T20 value */
|
||||
#define ROSE_DEFAULT_T1 200000 /* Default T11 T21 value */
|
||||
#define ROSE_DEFAULT_T2 180000 /* Default T12 T22 value */
|
||||
#define ROSE_DEFAULT_T3 180000 /* Default T13 T23 value */
|
||||
#define ROSE_DEFAULT_HB 5000 /* Default Holdback value */
|
||||
#define ROSE_DEFAULT_IDLE 0 /* No Activity Timeout - none */
|
||||
#define ROSE_DEFAULT_ROUTING 1 /* Default routing flag */
|
||||
#define ROSE_DEFAULT_FAIL_TIMEOUT (120 * HZ) /* Time until link considered usable */
|
||||
#define ROSE_DEFAULT_FAIL_TIMEOUT 120000 /* Time until link considered usable */
|
||||
#define ROSE_DEFAULT_MAXVC 50 /* Maximum number of VCs per neighbour */
|
||||
#define ROSE_DEFAULT_WINDOW_SIZE 7 /* Default window size */
|
||||
|
||||
|
||||
@@ -712,6 +712,7 @@ struct sctp_chunk {
|
||||
__u8 tsn_gap_acked; /* Is this chunk acked by a GAP ACK? */
|
||||
__s8 fast_retransmit; /* Is this chunk fast retransmitted? */
|
||||
__u8 tsn_missing_report; /* Data chunk missing counter. */
|
||||
__u8 data_accepted; /* At least 1 chunk in this packet accepted */
|
||||
};
|
||||
|
||||
void sctp_chunk_hold(struct sctp_chunk *);
|
||||
|
||||
+17
-6
@@ -95,14 +95,15 @@ struct srp_direct_buf {
|
||||
|
||||
/*
|
||||
* We need the packed attribute because the SRP spec puts the list of
|
||||
* descriptors at an offset of 20, which is not aligned to the size
|
||||
* of struct srp_direct_buf.
|
||||
* descriptors at an offset of 20, which is not aligned to the size of
|
||||
* struct srp_direct_buf. The whole structure must be packed to avoid
|
||||
* having the 20-byte structure padded to 24 bytes on 64-bit architectures.
|
||||
*/
|
||||
struct srp_indirect_buf {
|
||||
struct srp_direct_buf table_desc;
|
||||
__be32 len;
|
||||
struct srp_direct_buf desc_list[0] __attribute__((packed));
|
||||
};
|
||||
struct srp_direct_buf desc_list[0];
|
||||
} __attribute__((packed));
|
||||
|
||||
enum {
|
||||
SRP_MULTICHAN_SINGLE = 0,
|
||||
@@ -122,6 +123,11 @@ struct srp_login_req {
|
||||
u8 target_port_id[16];
|
||||
};
|
||||
|
||||
/*
|
||||
* The SRP spec defines the size of the LOGIN_RSP structure to be 52
|
||||
* bytes, so it needs to be packed to avoid having it padded to 56
|
||||
* bytes on 64-bit architectures.
|
||||
*/
|
||||
struct srp_login_rsp {
|
||||
u8 opcode;
|
||||
u8 reserved1[3];
|
||||
@@ -132,7 +138,7 @@ struct srp_login_rsp {
|
||||
__be16 buf_fmt;
|
||||
u8 rsp_flags;
|
||||
u8 reserved2[25];
|
||||
};
|
||||
} __attribute__((packed));
|
||||
|
||||
struct srp_login_rej {
|
||||
u8 opcode;
|
||||
@@ -207,6 +213,11 @@ enum {
|
||||
SRP_RSP_FLAG_DIUNDER = 1 << 5
|
||||
};
|
||||
|
||||
/*
|
||||
* The SRP spec defines the size of the RSP structure to be 36 bytes,
|
||||
* so it needs to be packed to avoid having it padded to 40 bytes on
|
||||
* 64-bit architectures.
|
||||
*/
|
||||
struct srp_rsp {
|
||||
u8 opcode;
|
||||
u8 sol_not;
|
||||
@@ -221,6 +232,6 @@ struct srp_rsp {
|
||||
__be32 sense_data_len;
|
||||
__be32 resp_data_len;
|
||||
u8 data[0];
|
||||
};
|
||||
} __attribute__((packed));
|
||||
|
||||
#endif /* SCSI_SRP_H */
|
||||
|
||||
Reference in New Issue
Block a user