diff options
Diffstat (limited to 'include/asm-ppc')
-rw-r--r-- | include/asm-ppc/ibm4xx.h | 2 | ||||
-rw-r--r-- | include/asm-ppc/io.h | 26 | ||||
-rw-r--r-- | include/asm-ppc/mpc8260_pci9.h | 4 | ||||
-rw-r--r-- | include/asm-ppc/reg_booke.h | 16 |
4 files changed, 15 insertions, 33 deletions
diff --git a/include/asm-ppc/ibm4xx.h b/include/asm-ppc/ibm4xx.h index cf62b69cb69a..499c14691c71 100644 --- a/include/asm-ppc/ibm4xx.h +++ b/include/asm-ppc/ibm4xx.h | |||
@@ -86,7 +86,7 @@ void ppc4xx_init(unsigned long r3, unsigned long r4, unsigned long r5, | |||
86 | #define PCI_DRAM_OFFSET 0 | 86 | #define PCI_DRAM_OFFSET 0 |
87 | #endif | 87 | #endif |
88 | 88 | ||
89 | #elif CONFIG_44x | 89 | #elif defined(CONFIG_44x) |
90 | 90 | ||
91 | #if defined(CONFIG_BAMBOO) | 91 | #if defined(CONFIG_BAMBOO) |
92 | #include <platforms/4xx/bamboo.h> | 92 | #include <platforms/4xx/bamboo.h> |
diff --git a/include/asm-ppc/io.h b/include/asm-ppc/io.h index 680555be22ec..3d9a9e6f3321 100644 --- a/include/asm-ppc/io.h +++ b/include/asm-ppc/io.h | |||
@@ -327,26 +327,12 @@ __do_out_asm(outl, "stwbrx") | |||
327 | #define inl_p(port) inl((port)) | 327 | #define inl_p(port) inl((port)) |
328 | #define outl_p(val, port) outl((val), (port)) | 328 | #define outl_p(val, port) outl((val), (port)) |
329 | 329 | ||
330 | extern void _insb(volatile u8 __iomem *port, void *buf, int ns); | 330 | extern void _insb(volatile u8 __iomem *port, void *buf, long count); |
331 | extern void _outsb(volatile u8 __iomem *port, const void *buf, int ns); | 331 | extern void _outsb(volatile u8 __iomem *port, const void *buf, long count); |
332 | extern void _insw(volatile u16 __iomem *port, void *buf, int ns); | 332 | extern void _insw_ns(volatile u16 __iomem *port, void *buf, long count); |
333 | extern void _outsw(volatile u16 __iomem *port, const void *buf, int ns); | 333 | extern void _outsw_ns(volatile u16 __iomem *port, const void *buf, long count); |
334 | extern void _insl(volatile u32 __iomem *port, void *buf, int nl); | 334 | extern void _insl_ns(volatile u32 __iomem *port, void *buf, long count); |
335 | extern void _outsl(volatile u32 __iomem *port, const void *buf, int nl); | 335 | extern void _outsl_ns(volatile u32 __iomem *port, const void *buf, long count); |
336 | extern void _insw_ns(volatile u16 __iomem *port, void *buf, int ns); | ||
337 | extern void _outsw_ns(volatile u16 __iomem *port, const void *buf, int ns); | ||
338 | extern void _insl_ns(volatile u32 __iomem *port, void *buf, int nl); | ||
339 | extern void _outsl_ns(volatile u32 __iomem *port, const void *buf, int nl); | ||
340 | |||
341 | /* | ||
342 | * The *_ns versions below don't do byte-swapping. | ||
343 | * Neither do the standard versions now, these are just here | ||
344 | * for older code. | ||
345 | */ | ||
346 | #define insw_ns(port, buf, ns) _insw_ns((port)+___IO_BASE, (buf), (ns)) | ||
347 | #define outsw_ns(port, buf, ns) _outsw_ns((port)+___IO_BASE, (buf), (ns)) | ||
348 | #define insl_ns(port, buf, nl) _insl_ns((port)+___IO_BASE, (buf), (nl)) | ||
349 | #define outsl_ns(port, buf, nl) _outsl_ns((port)+___IO_BASE, (buf), (nl)) | ||
350 | 336 | ||
351 | 337 | ||
352 | #define IO_SPACE_LIMIT ~0 | 338 | #define IO_SPACE_LIMIT ~0 |
diff --git a/include/asm-ppc/mpc8260_pci9.h b/include/asm-ppc/mpc8260_pci9.h index 26b3f6e787bc..9f7176881c56 100644 --- a/include/asm-ppc/mpc8260_pci9.h +++ b/include/asm-ppc/mpc8260_pci9.h | |||
@@ -30,8 +30,6 @@ | |||
30 | #undef inb | 30 | #undef inb |
31 | #undef inw | 31 | #undef inw |
32 | #undef inl | 32 | #undef inl |
33 | #undef insw_ns | ||
34 | #undef insl_ns | ||
35 | #undef memcpy_fromio | 33 | #undef memcpy_fromio |
36 | 34 | ||
37 | extern int readb(volatile unsigned char *addr); | 35 | extern int readb(volatile unsigned char *addr); |
@@ -43,8 +41,6 @@ extern void insl(unsigned port, void *buf, int nl); | |||
43 | extern int inb(unsigned port); | 41 | extern int inb(unsigned port); |
44 | extern int inw(unsigned port); | 42 | extern int inw(unsigned port); |
45 | extern unsigned inl(unsigned port); | 43 | extern unsigned inl(unsigned port); |
46 | extern void insw_ns(unsigned port, void *buf, int ns); | ||
47 | extern void insl_ns(unsigned port, void *buf, int nl); | ||
48 | extern void *memcpy_fromio(void *dest, unsigned long src, size_t count); | 44 | extern void *memcpy_fromio(void *dest, unsigned long src, size_t count); |
49 | 45 | ||
50 | #endif /* !__CONFIG_8260_PCI9_DEFS */ | 46 | #endif /* !__CONFIG_8260_PCI9_DEFS */ |
diff --git a/include/asm-ppc/reg_booke.h b/include/asm-ppc/reg_booke.h index 4944c0fb8bea..602fbadeaf48 100644 --- a/include/asm-ppc/reg_booke.h +++ b/include/asm-ppc/reg_booke.h | |||
@@ -300,14 +300,14 @@ do { \ | |||
300 | #define DBSR_IC 0x80000000 /* Instruction Completion */ | 300 | #define DBSR_IC 0x80000000 /* Instruction Completion */ |
301 | #define DBSR_BT 0x40000000 /* Branch taken */ | 301 | #define DBSR_BT 0x40000000 /* Branch taken */ |
302 | #define DBSR_TIE 0x10000000 /* Trap Instruction debug Event */ | 302 | #define DBSR_TIE 0x10000000 /* Trap Instruction debug Event */ |
303 | #define DBSR_IAC1 0x00800000 /* Instruction Address Compare 1 Event */ | 303 | #define DBSR_IAC1 0x04000000 /* Instruction Address Compare 1 Event */ |
304 | #define DBSR_IAC2 0x00400000 /* Instruction Address Compare 2 Event */ | 304 | #define DBSR_IAC2 0x02000000 /* Instruction Address Compare 2 Event */ |
305 | #define DBSR_IAC3 0x00200000 /* Instruction Address Compare 3 Event */ | 305 | #define DBSR_IAC3 0x00080000 /* Instruction Address Compare 3 Event */ |
306 | #define DBSR_IAC4 0x00100000 /* Instruction Address Compare 4 Event */ | 306 | #define DBSR_IAC4 0x00040000 /* Instruction Address Compare 4 Event */ |
307 | #define DBSR_DAC1R 0x00080000 /* Data Address Compare 1 Read Event */ | 307 | #define DBSR_DAC1R 0x01000000 /* Data Address Compare 1 Read Event */ |
308 | #define DBSR_DAC1W 0x00040000 /* Data Address Compare 1 Write Event */ | 308 | #define DBSR_DAC1W 0x00800000 /* Data Address Compare 1 Write Event */ |
309 | #define DBSR_DAC2R 0x00020000 /* Data Address Compare 2 Read Event */ | 309 | #define DBSR_DAC2R 0x00400000 /* Data Address Compare 2 Read Event */ |
310 | #define DBSR_DAC2W 0x00010000 /* Data Address Compare 2 Write Event */ | 310 | #define DBSR_DAC2W 0x00200000 /* Data Address Compare 2 Write Event */ |
311 | #endif | 311 | #endif |
312 | 312 | ||
313 | /* Bit definitions related to the ESR. */ | 313 | /* Bit definitions related to the ESR. */ |