diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-09-12 23:05:48 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1997-09-12 23:05:48 +0000 |
commit | 694ef5461ede4fb222616457903ec18e34b4e902 (patch) | |
tree | 9a90b2ecf47dd1a6fdff0414f5e9af605304588f /arch | |
parent | 545f435ebcfd94a1e7c20b46efe81b4d6ac4e698 (diff) |
Remove files that were removed between 2.1.49 and 2.1.55. Somehow
my script to do that broke :-(
Diffstat (limited to 'arch')
-rw-r--r-- | arch/m68k/boot/Makefile | 0 | ||||
-rw-r--r-- | arch/m68k/boot/amiga/bootstrap.c | 0 | ||||
-rw-r--r-- | arch/m68k/boot/amiga/bootstrap.h | 0 | ||||
-rw-r--r-- | arch/m68k/boot/amiga/linuxboot.c | 0 | ||||
-rw-r--r-- | arch/m68k/boot/amiga/linuxboot.h | 0 | ||||
-rw-r--r-- | arch/m68k/boot/atari/bootp.c | 0 | ||||
-rw-r--r-- | arch/m68k/boot/atari/bootp.h | 0 | ||||
-rw-r--r-- | arch/m68k/boot/atari/bootstrap.c | 0 | ||||
-rw-r--r-- | arch/m68k/boot/atari/bootstrap.h | 0 | ||||
-rw-r--r-- | arch/m68k/boot/atari/ethlance.c | 0 | ||||
-rw-r--r-- | arch/m68k/boot/atari/ethlance.h | 0 | ||||
-rw-r--r-- | arch/m68k/boot/atari/sysvars.h | 0 | ||||
-rw-r--r-- | arch/m68k/kernel/bios32.c | 7 | ||||
-rw-r--r-- | arch/ppc/boot/cortstrip.c | 0 | ||||
-rw-r--r-- | arch/ppc/boot/mk_type41.c | 0 | ||||
-rw-r--r-- | arch/ppc/boot/piggyback.c | 0 | ||||
-rw-r--r-- | arch/ppc/kernel/ksyms.c | 40 | ||||
-rw-r--r-- | arch/ppc/kernel/port_io.c | 146 | ||||
-rw-r--r-- | arch/ppc/kernel/stubs.c | 0 | ||||
-rw-r--r-- | arch/ppc/kernel/support.c | 0 | ||||
-rw-r--r-- | arch/ppc/kernel/usercpy.c | 0 | ||||
-rw-r--r-- | arch/ppc/ld.script | 81 | ||||
-rw-r--r-- | arch/ppc/lib/checksum.c | 136 | ||||
-rw-r--r-- | arch/ppc/lib/cksum_support.S | 125 |
24 files changed, 0 insertions, 535 deletions
diff --git a/arch/m68k/boot/Makefile b/arch/m68k/boot/Makefile deleted file mode 100644 index e69de29bb..000000000 --- a/arch/m68k/boot/Makefile +++ /dev/null diff --git a/arch/m68k/boot/amiga/bootstrap.c b/arch/m68k/boot/amiga/bootstrap.c deleted file mode 100644 index e69de29bb..000000000 --- a/arch/m68k/boot/amiga/bootstrap.c +++ /dev/null diff --git a/arch/m68k/boot/amiga/bootstrap.h b/arch/m68k/boot/amiga/bootstrap.h deleted file mode 100644 index e69de29bb..000000000 --- a/arch/m68k/boot/amiga/bootstrap.h +++ /dev/null diff --git a/arch/m68k/boot/amiga/linuxboot.c b/arch/m68k/boot/amiga/linuxboot.c deleted file mode 100644 index e69de29bb..000000000 --- a/arch/m68k/boot/amiga/linuxboot.c +++ /dev/null diff --git a/arch/m68k/boot/amiga/linuxboot.h b/arch/m68k/boot/amiga/linuxboot.h deleted file mode 100644 index e69de29bb..000000000 --- a/arch/m68k/boot/amiga/linuxboot.h +++ /dev/null diff --git a/arch/m68k/boot/atari/bootp.c b/arch/m68k/boot/atari/bootp.c deleted file mode 100644 index e69de29bb..000000000 --- a/arch/m68k/boot/atari/bootp.c +++ /dev/null diff --git a/arch/m68k/boot/atari/bootp.h b/arch/m68k/boot/atari/bootp.h deleted file mode 100644 index e69de29bb..000000000 --- a/arch/m68k/boot/atari/bootp.h +++ /dev/null diff --git a/arch/m68k/boot/atari/bootstrap.c b/arch/m68k/boot/atari/bootstrap.c deleted file mode 100644 index e69de29bb..000000000 --- a/arch/m68k/boot/atari/bootstrap.c +++ /dev/null diff --git a/arch/m68k/boot/atari/bootstrap.h b/arch/m68k/boot/atari/bootstrap.h deleted file mode 100644 index e69de29bb..000000000 --- a/arch/m68k/boot/atari/bootstrap.h +++ /dev/null diff --git a/arch/m68k/boot/atari/ethlance.c b/arch/m68k/boot/atari/ethlance.c deleted file mode 100644 index e69de29bb..000000000 --- a/arch/m68k/boot/atari/ethlance.c +++ /dev/null diff --git a/arch/m68k/boot/atari/ethlance.h b/arch/m68k/boot/atari/ethlance.h deleted file mode 100644 index e69de29bb..000000000 --- a/arch/m68k/boot/atari/ethlance.h +++ /dev/null diff --git a/arch/m68k/boot/atari/sysvars.h b/arch/m68k/boot/atari/sysvars.h deleted file mode 100644 index e69de29bb..000000000 --- a/arch/m68k/boot/atari/sysvars.h +++ /dev/null diff --git a/arch/m68k/kernel/bios32.c b/arch/m68k/kernel/bios32.c deleted file mode 100644 index 1fe61faa0..000000000 --- a/arch/m68k/kernel/bios32.c +++ /dev/null @@ -1,7 +0,0 @@ -/* - * bios 32 replacement - */ -unsigned long bios32_init(unsigned long memory_start, unsigned long memory_end) -{ - return memory_start; -} diff --git a/arch/ppc/boot/cortstrip.c b/arch/ppc/boot/cortstrip.c deleted file mode 100644 index e69de29bb..000000000 --- a/arch/ppc/boot/cortstrip.c +++ /dev/null diff --git a/arch/ppc/boot/mk_type41.c b/arch/ppc/boot/mk_type41.c deleted file mode 100644 index e69de29bb..000000000 --- a/arch/ppc/boot/mk_type41.c +++ /dev/null diff --git a/arch/ppc/boot/piggyback.c b/arch/ppc/boot/piggyback.c deleted file mode 100644 index e69de29bb..000000000 --- a/arch/ppc/boot/piggyback.c +++ /dev/null diff --git a/arch/ppc/kernel/ksyms.c b/arch/ppc/kernel/ksyms.c deleted file mode 100644 index b246fa6df..000000000 --- a/arch/ppc/kernel/ksyms.c +++ /dev/null @@ -1,40 +0,0 @@ -#include <linux/config.h> -#include <linux/module.h> -#include <linux/smp.h> -#include <linux/elfcore.h> -#include <linux/sched.h> - -#include <asm/semaphore.h> -#include <asm/processor.h> -#include <asm/uaccess.h> -#include <asm/io.h> - -void transfer_to_handler(); -void int_return(); -void syscall_trace(); -void handle_IRQ(); -void MachineCheckException(); -void AlignmentException(); -void ProgramCheckException(); -void SingleStepException(); -void FloatingPointCheckException(); -void sys_sigreturn(); -unsigned long sys_call_table[]; - -extern struct task_struct *current_set[1]; - -/* platform dependent support */ -EXPORT_SYMBOL(current_set); -EXPORT_SYMBOL(do_signal); -EXPORT_SYMBOL(syscall_trace); -EXPORT_SYMBOL(transfer_to_handler); -EXPORT_SYMBOL(int_return); -EXPORT_SYMBOL(handle_IRQ); -EXPORT_SYMBOL(init_task_union); -EXPORT_SYMBOL(MachineCheckException); -EXPORT_SYMBOL(AlignmentException); -EXPORT_SYMBOL(ProgramCheckException); -EXPORT_SYMBOL(SingleStepException); -EXPORT_SYMBOL(FloatingPointCheckException); -EXPORT_SYMBOL(sys_sigreturn); -EXPORT_SYMBOL(sys_call_table); diff --git a/arch/ppc/kernel/port_io.c b/arch/ppc/kernel/port_io.c deleted file mode 100644 index cc8626a3a..000000000 --- a/arch/ppc/kernel/port_io.c +++ /dev/null @@ -1,146 +0,0 @@ -/* - * I/O 'port' access routines - */ -#include <asm/byteorder.h> -#include <asm/io.h> - -#define inb_asm(port) {( \ - unsigned char ret; \ - asm ( "lbz %0,0(%1)\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\n" : "=r" (ret) : "r" (port+_IO_BASE)); \ - return ret; \ -}) - -inline unsigned char -inb(int port) -{ - unsigned char ret; - asm("/*inb*/\n"); - asm ( "lbz %0,0(%1)" : "=r" (ret) : "r" (port+_IO_BASE)); - return ret; -} - -inline unsigned short -inw(int port) -{ - unsigned short ret; - asm("/*inw*/\n"); - asm ( "lhbrx %0,%1,%2" : "=r" (ret) : "r" (port+_IO_BASE), "r" (0)); - return ret; -} - -inline unsigned long -inl(int port) -{ - unsigned long ret; - asm("/*inl*/\n"); - asm ( "lwbrx %0,%1,%2" : "=r" (ret) : "r" (port+_IO_BASE), "r" (0)); - return ret; -} - -inline unsigned char -outb(unsigned char val,int port) -{ - asm("/*outb*/\n"); - asm ( "stb %0,0(%1)" :: "r" (val), "r" (port+_IO_BASE)); - return (val); -} - -inline unsigned short -outw(unsigned short val,int port) -{ - asm("/*outw*/\n"); - asm ( "sthbrx %0,%1,%2" :: "r" (val), "r" (port+_IO_BASE), "r" (0)); - return (val); -} - -inline unsigned long -outl(unsigned long val,int port) -{ - asm("/*outl*/\n"); - asm ( "stwbrx %0,%1,%2" :: "r" (val), "r" (port+_IO_BASE), "r" (0)); - return (val); -} - -void insb(int port, char *ptr, int len) -{ - memcpy( (void *)ptr, (void *)(port+_IO_BASE), len); -} - -void insw(int port, short *ptr, int len) -{ - asm ("mtctr %2 \n\t" - "subi %1,%1,2 \n\t" - "00:\n\t" - "lhbrx %2,0,%0 \n\t" - "sthu %2,2(%1) \n\t" - "bdnz 00b \n\t" - :: "r" (port+_IO_BASE), "r" (ptr), "r" (len)); -} - -void insw_unswapped(int port, short *ptr, int len) -{ - memcpy( (void *)ptr, (void *)(port+_IO_BASE), (len*sizeof(short)) ); -} - -void insl(int port, long *ptr, int len) -{ - asm ("mtctr %2 \n\t" - "subi %1,%1,4 \n\t" - "00:\n\t" - "lhbrx %2,0,%0 \n\t" - "sthu %2,4(%1) \n\t" - "bdnz 00b \n\t" - :: "r" (port+_IO_BASE), "r" (ptr), "r" (len)); -} - -void outsb(int port, char *ptr, int len) -{ - memcpy( (void *)ptr, (void *)(port+_IO_BASE), len ); -} - -void outsw(int port, short *ptr, int len) -{ - asm ("mtctr %2\n\t" - "subi %1,%1,2\n\t" - "00:lhzu %2,2(%1)\n\t" - "sthbrx %2,0,%0\n\t" - "bdnz 00b\n\t" - :: "r" (port+_IO_BASE), "r" (ptr), "r" (len)); -} - -void outsw_unswapped(int port, short *ptr, int len) -{ - memcpy( (void *)ptr, (void *)(port+_IO_BASE), len*sizeof(short) ); -} - -void outsl(int port, long *ptr, int len) -{ - asm ("mtctr %2\n\t" - "subi %1,%1,4\n\t" - "00:lwzu %2,4(%1)\n\t" - "sthbrx %2,0,%0\n\t" - "bdnz 00b\n\t" - :: "r" (port+_IO_BASE), "r" (ptr), "r" (len)); -} - -void insl_unswapped(int port, long *ptr, int len) -{ - unsigned long *io_ptr = (unsigned long *)(_IO_BASE+port); - /* Ensure I/O operations complete */ - __asm__ volatile("eieio"); - while (len-- > 0) - { - *ptr++ = (*io_ptr); - } -} - -void outsl_unswapped(int port, long *ptr, int len) -{ - unsigned long *io_ptr = (unsigned long *)(_IO_BASE+port); - /* Ensure I/O operations complete */ - __asm__ volatile("eieio"); - while (len-- > 0) - { - *io_ptr = (*ptr++); - } -} diff --git a/arch/ppc/kernel/stubs.c b/arch/ppc/kernel/stubs.c deleted file mode 100644 index e69de29bb..000000000 --- a/arch/ppc/kernel/stubs.c +++ /dev/null diff --git a/arch/ppc/kernel/support.c b/arch/ppc/kernel/support.c deleted file mode 100644 index e69de29bb..000000000 --- a/arch/ppc/kernel/support.c +++ /dev/null diff --git a/arch/ppc/kernel/usercpy.c b/arch/ppc/kernel/usercpy.c deleted file mode 100644 index e69de29bb..000000000 --- a/arch/ppc/kernel/usercpy.c +++ /dev/null diff --git a/arch/ppc/ld.script b/arch/ppc/ld.script deleted file mode 100644 index ab5b070db..000000000 --- a/arch/ppc/ld.script +++ /dev/null @@ -1,81 +0,0 @@ -OUTPUT_ARCH(powerpc) -SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib); -/* Do we need any of these for elf? - __DYNAMIC = 0; */ -SECTIONS -{ - /* Read-only sections, merged into text segment: */ - . = + SIZEOF_HEADERS; - .interp : { *(.interp) } - .hash : { *(.hash) } - .dynsym : { *(.dynsym) } - .dynstr : { *(.dynstr) } - .rel.text : { *(.rel.text) } - .rela.text : { *(.rela.text) } - .rel.data : { *(.rel.data) } - .rela.data : { *(.rela.data) } - .rel.rodata : { *(.rel.rodata) } - .rela.rodata : { *(.rela.rodata) } - .rel.got : { *(.rel.got) } - .rela.got : { *(.rela.got) } - .rel.ctors : { *(.rel.ctors) } - .rela.ctors : { *(.rela.ctors) } - .rel.dtors : { *(.rel.dtors) } - .rela.dtors : { *(.rela.dtors) } - .rel.bss : { *(.rel.bss) } - .rela.bss : { *(.rela.bss) } - .rel.plt : { *(.rel.plt) } - .rela.plt : { *(.rela.plt) } - .init : { *(.init) } =0 - .plt : { *(.plt) } - .text : - { - *(.text) - *(.fixup) - *(.got1) - } - _etext = .; - PROVIDE (etext = .); - .rodata : - { - *(.rodata) - *(.rodata1) - } - .fini : { *(.fini) } =0 - .ctors : { *(.ctors) } - .dtors : { *(.dtors) } - /* Read-write section, merged into data segment: */ - . = (. + 0x0FFF) & 0xFFFFF000; - .data : - { - *(.data) - *(.data1) - *(.sdata) - *(.sdata2) - *(.got.plt) *(.got) - *(.dynamic) - CONSTRUCTORS - } - _edata = .; -/* - . = ALIGN(4096); - __init_begin = .; - .text.init : { *(.text.init) } - .data.init : { *(.data.init) } - . = ALIGN(4096); - __init_end = .; -*/ - __bss_start = .; /* BSS */ - PROVIDE (edata = .); - __bss_start = .; - .bss : - { - *(.sbss) *(.scommon) - *(.dynbss) - *(.bss) - *(COMMON) - } - _end = . ; - PROVIDE (end = .); -} - diff --git a/arch/ppc/lib/checksum.c b/arch/ppc/lib/checksum.c deleted file mode 100644 index 973916f74..000000000 --- a/arch/ppc/lib/checksum.c +++ /dev/null @@ -1,136 +0,0 @@ -/* - * INET An implementation of the TCP/IP protocol suite for the LINUX - * operating system. INET is implemented using the BSD Socket - * interface as the means of communication with the user level. - * - * IP/TCP/UDP checksumming routines - * - * Authors: Jorge Cwik, <jorge@laser.satlink.net> - * Arnt Gulbrandsen, <agulbra@nvg.unit.no> - * Tom May, <ftom@netcom.com> - * Lots of code moved from tcp.c and ip.c; see those files - * for more names. - * - * Adapted for PowerPC by Gary Thomas <gdt@mc.com> - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - */ - -#include <net/checksum.h> - -/* - * computes the checksum of a memory block at buff, length len, - * and adds in "sum" (32-bit) - * - * returns a 32-bit number suitable for feeding into itself - * or csum_tcpudp_magic - * - * this function must be called with even lengths, except - * for the last fragment, which may be odd - * - * it's best to have buff aligned on a 32-bit boundary - */ -unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum) -{ - unsigned long result = ~_csum_partial(buff, len, sum); -#if 0 -printk("Csum partial(%x, %d, %x) = %x\n", buff, len, sum, result); -dump_buf(buff, len); -#endif - return result; -} - -/* - * the same as csum_partial, but copies from src while it - * checksums - * - * here even more important to align src and dst on a 32-bit boundary - */ - -unsigned int csum_partial_copy(const char *src, char *dst, int len, int sum) -{ - /* - * The whole idea is to do the copy and the checksum at - * the same time, but we do it the easy way now. - * - * At least csum on the source, not destination, for cache - * reasons.. - */ - sum = csum_partial(src, len, sum); - memcpy(dst, src, len); - return sum; -} - -extern unsigned short _ip_fast_csum(unsigned char *buf); - -unsigned short -ip_fast_csum(unsigned char *buf, unsigned int len) -{ - unsigned short _val; - _val = _ip_fast_csum(buf); -#if 0 - printk("IP CKSUM(%x, %d) = %x\n", buf, len, _val); - dump_buf(buf, len*4); -#endif - return (_val); -} - -extern unsigned short _ip_compute_csum(unsigned char *buf, int len); - -unsigned short -ip_compute_csum(unsigned char *buf, int len) -{ - unsigned short _val; - _val = _ip_compute_csum(buf, len); -#if 0 - printk("Compute IP CKSUM(%x, %d) = %x\n", buf, len, _val); - dump_buf(buf, len); -#endif - return (_val); -} - -unsigned short -_udp_check(unsigned char *buf, int len, int saddr, int daddr, int hdr); - -unsigned short -udp_check(unsigned char *buf, int len, int saddr, int daddr) -{ - unsigned short _val; - int hdr; - hdr = (len << 16) + IPPROTO_UDP; - _val = _udp_check(buf, len, saddr, daddr, hdr); -#if 0 - printk("UDP CSUM(%x,%d,%x,%x) = %x\n", buf, len, saddr, daddr, _val); - dump_buf(buf, len); -#endif - return (_val); -} - -unsigned short -_tcp_check(unsigned char *buf, int len, int saddr, int daddr, int hdr); - -unsigned short -csum_tcpudp_magic(unsigned long saddr, unsigned long daddr, unsigned short len, unsigned short proto, unsigned int sum) -{ - unsigned short _val; - _val = _csum_tcpudp_magic(saddr, daddr, sum, (len<<16)+proto); -#if 0 - printk("TCP Magic(%x, %x, %x, %x) = %x\n", saddr, daddr, (len<<16)+proto, sum, _val); -#endif - return (_val); -} - -/* - * Fold a partial checksum without adding pseudo headers - */ - -unsigned int csum_fold(unsigned int sum) -{ - sum = (sum & 0xffff) + (sum >> 16); - sum = (sum & 0xffff) + (sum >> 16); - return ~sum; -} - diff --git a/arch/ppc/lib/cksum_support.S b/arch/ppc/lib/cksum_support.S deleted file mode 100644 index 264d5a6fb..000000000 --- a/arch/ppc/lib/cksum_support.S +++ /dev/null @@ -1,125 +0,0 @@ -/* - * This module contains the PowerPC interrupt fielders - * set of code at specific locations, based on function - */ - -#include <linux/sys.h> -#include "../kernel/ppc_asm.tmpl" - -_TEXT() - -/* - * Compute IP checksums - * _ip_fast_csum(buf, len) -- Optimized for IP header - * _ip_compute_csum(buf, len) - */ - -_GLOBAL(_ip_fast_csum) - li r0,0 - addic r0,r0,0 /* Clear initial carry */ - lwz r4,0(r3) - lwz r5,4(r3) - adde r0,r0,r4 - lwz r4,8(r3) - adde r0,r0,r5 - lwz r5,12(r3) - adde r0,r0,r4 - lwz r4,16(r3) - adde r0,r0,r5 - adde r0,r0,r4 - mr r3,r0 - andi. r3,r3,0xFFFF - srwi r0,r0,16 - adde r3,r3,r0 - andis. r0,r3,1 - beq 10f - addi r3,r3,1 -10: not r3,r3 - andi. r3,r3,0xFFFF - blr - -_GLOBAL(_ip_compute_csum) - li r0,0 - addic r0,r0,0 -finish_ip_csum: - subi r3,r3,4 - andi. r5,r3,2 /* Align buffer to longword boundary */ - beq 10f - lhz r5,4(r3) - adde r0,r0,r5 - addi r3,r3,2 - subi r4,r4,2 -10: cmpi 0,r4,16 /* unrolled loop - 16 bytes at a time */ - blt 20f - lwz r5,4(r3) - lwz r6,8(r3) - adde r0,r0,r5 - lwz r5,12(r3) - adde r0,r0,r6 - lwzu r6,16(r3) - adde r0,r0,r5 - adde r0,r0,r6 - subi r4,r4,16 - b 10b -20: cmpi 0,r4,4 - blt 30f - lwzu r5,4(r3) - adde r0,r0,r5 - subi r4,r4,4 - b 20b -30: cmpi 0,r4,2 - blt 40f - lhz r5,4(r3) - addi r3,r3,2 - adde r0,r0,r5 - subi r4,r4,2 -40: cmpi 0,r4,1 - bne 50f - lbz r5,4(r3) - slwi r5,r5,8 /* Upper byte of word */ - adde r0,r0,r5 -50: mr r3,r0 - andi. r3,r3,0xFFFF - srwi r0,r0,16 - adde r3,r3,r0 - andis. r0,r3,1 - beq 60f - addi r3,r3,1 -60: not r3,r3 - andi. r3,r3,0xFFFF - blr - -_GLOBAL(_udp_check) - addc r0,r5,r6 /* Add in header fields */ - adde r0,r0,r7 - b finish_ip_csum - -_GLOBAL(_tcp_check) - addc r0,r5,r6 /* Add in header fields */ - adde r0,r0,r7 - b finish_ip_csum - -_GLOBAL(_csum_partial) - li r0,0 - addc r0,r5,r0 - b finish_ip_csum - -/* - * Compute 16 bit sum: - * _csum_tcpudp_magic(int saddr, int daddr, int sum, int proto) - */ -_GLOBAL(_csum_tcpudp_magic) - addc r0,r3,r4 - adde r0,r0,r5 - adde r0,r0,r6 - mr r3,r0 - andi. r3,r3,0xFFFF - srwi r0,r0,16 - adde r3,r3,r0 - andis. r0,r3,1 /* Carry out of 16 bits? */ - beq 10f - addi r3,r3,1 -10: not r3,r3 - andi. r3,r3,0xFFFF - blr - |