···177177178178cflags-$(CONFIG_CPU_R5000) += \179179 $(call set_gccflags,r5000,mips4,r5000,mips4,mips2) \180180- -Wa,--trap 180180+ -Wa,--trap181181182182cflags-$(CONFIG_CPU_R5432) += \183183 $(call set_gccflags,r5400,mips4,r5000,mips4,mips2) \···720720 @$(MAKE) $(clean)=arch/mips/boot721721 @$(MAKE) $(clean)=arch/mips/lasat722722723723-# Generate <asm/offset.h 723723+# Generate <asm/offset.h724724#725725# The default rule is suffering from funny problems on MIPS so we using our726726# own ...
···6161 prom_envp = (char **) fw_arg2;62626363 mips_machgroup = MACH_GROUP_ALCHEMY;6464- mips_machtype = MACH_DB1000; /* set the platform # */ 6464+ mips_machtype = MACH_DB1000; /* set the platform # */65656666 prom_init_cmdline();6767
+1-1
arch/mips/au1000/hydrogen3/init.c
···6363 prom_envp = envp;64646565 mips_machgroup = MACH_GROUP_ALCHEMY;6666- mips_machtype = MACH_DB1000; /* set the platform # */ 6666+ mips_machtype = MACH_DB1000; /* set the platform # */6767 prom_init_cmdline();68686969 memsize_str = prom_getenv("memsize");
+1-1
arch/mips/au1000/pb1000/board_setup.c
···174174 case 0x02: /* HB */175175 break;176176 default: /* HC and newer */177177- /* Enable sys bus clock divider when IDLE state or no bus 177177+ /* Enable sys bus clock divider when IDLE state or no bus178178 activity. */179179 au_writel(au_readl(SYS_POWERCTRL) | (0x3 << 5), SYS_POWERCTRL);180180 break;
+3-3
arch/mips/au1000/xxs1500/board_setup.c
···4949void __init board_setup(void)5050{5151 u32 pin_func;5252-5252+5353 // set multiple use pins (UART3/GPIO) to UART (it's used as UART too)5454 pin_func = au_readl(SYS_PINFUNC) & (u32)(~SYS_PF_UR3);5555 pin_func |= SYS_PF_UR3;···7575 au_writel(1, GPIO2_ENABLE);7676 /* gpio2 208/9/10/11 are inputs */7777 au_writel((1<<8) | (1<<9) | (1<<10) | (1<<11), GPIO2_DIR);7878-7878+7979 /* turn off power */8080 au_writel((au_readl(GPIO2_PINSTATE) & ~(1<<14))|(1<<30), GPIO2_OUTPUT);8181#endif8282-8282+83838484#ifdef CONFIG_PCI8585#if defined(__MIPSEB__)
+1-1
arch/mips/au1000/xxs1500/init.c
···5555 prom_envp = (char **) fw_arg2;56565757 mips_machgroup = MACH_GROUP_ALCHEMY;5858- mips_machtype = MACH_XXS1500; /* set the platform # */ 5858+ mips_machtype = MACH_XXS1500; /* set the platform # */59596060 prom_init_cmdline();6161
···141141142142 /* mips_hpt_frequency is 1/2 of the cpu core freq */143143 i = (read_c0_config() >> 28 ) & 7;144144- if ((current_cpu_data.cputype == CPU_R5432) && (i == 3)) 144144+ if ((current_cpu_data.cputype == CPU_R5432) && (i == 3))145145 i = 4;146146 mips_hpt_frequency = bus_frequency*(i+4)/4;147147}···298298299299 if (mips_machtype == MACH_NEC_ROCKHOPPER300300 || mips_machtype == MACH_NEC_ROCKHOPPERII) {301301- /* Disable bus diagnostics. */ 301301+ /* Disable bus diagnostics. */302302 ddb_out32(DDB_PCICTL0_L, 0);303303 ddb_out32(DDB_PCICTL0_H, 0);304304 ddb_out32(DDB_PCICTL1_L, 0);305305- ddb_out32(DDB_PCICTL1_H, 0); 305305+ ddb_out32(DDB_PCICTL1_H, 0);306306 }307307308308 if (mips_machtype == MACH_NEC_ROCKHOPPER) {···354354 */355355 pci_write_config_byte(&dev_m1533, 0x58, 0x74);356356357357- /* 357357+ /*358358 * positive decode (bit6 -0)359359 * enable IDE controler interrupt (bit 4 -1)360360 * setup SIRQ to point to IRQ 14 (bit 3:0 - 1101)···364364 /* Setup M5229 registers */365365 dev_m5229.bus = &bus;366366 dev_m5229.sysdata = NULL;367367- dev_m5229.devfn = 4*8; // slot 4 (AD15): M5229 IDE 367367+ dev_m5229.devfn = 4*8; // slot 4 (AD15): M5229 IDE368368369369 /*370370 * enable IDE in the M5229 config register 0x50 (bit 0 - 1)371371- * M5229 IDSEL is addr:15; see above setting 371371+ * M5229 IDSEL is addr:15; see above setting372372 */373373 pci_read_config_byte(&dev_m5229, 0x50, &temp8);374374 pci_write_config_byte(&dev_m5229, 0x50, temp8 | 0x1);375375376376- /* 377377- * enable bus master (bit 2) and IO decoding (bit 0) 376376+ /*377377+ * enable bus master (bit 2) and IO decoding (bit 0)378378 */379379 pci_read_config_byte(&dev_m5229, 0x04, &temp8);380380 pci_write_config_byte(&dev_m5229, 0x04, temp8 | 0x5);381381382382 /*383383 * enable native, copied from arch/ppc/k2boot/head.S384384- * TODO - need volatile, need to be portable 384384+ * TODO - need volatile, need to be portable385385 */386386 pci_write_config_byte(&dev_m5229, 0x09, 0xef);387387388388- /* Set Primary Channel Command Block Timing */ 388388+ /* Set Primary Channel Command Block Timing */389389 pci_write_config_byte(&dev_m5229, 0x59, 0x31);390390391391- /* 391391+ /*392392 * Enable primary channel 40-pin cable393393 * M5229 register 0x4a (bit 0)394394 */
+1-1
arch/mips/dec/ecc-berr.c
···253253254254 kn0x_erraddr = (void *)(KN03_SLOT_BASE + IOASIC_ERRADDR);255255 kn0x_chksyn = (void *)(KN03_SLOT_BASE + IOASIC_CHKSYN);256256-256256+257257 /*258258 * Set normal ECC detection and generation, enable ECC correction.259259 * For KN05 we also need to make sure EE (?) is enabled in the MB.
···687687 * acquire the big kgdb spinlock688688 */689689 if (!spin_trylock(&kgdb_lock)) {690690- /* 691691- * some other CPU has the lock, we should go back to 690690+ /*691691+ * some other CPU has the lock, we should go back to692692 * receive the gdb_wait IPC693693 */694694 return;···703703 async_bp.addr = 0;704704 }705705706706- /* 706706+ /*707707 * acquire the CPU spinlocks708708 */709709 for (i = num_online_cpus()-1; i >= 0; i--)···894894 ptr = &input_buffer[1];895895 if (hexToLong(&ptr, &addr))896896 regs->cp0_epc = addr;897897-897897+898898 goto exit_kgdb_exception;899899 break;900900···10011001 return;1002100210031003 __asm__ __volatile__(10041004- ".globl breakinst\n\t" 10041004+ ".globl breakinst\n\t"10051005 ".set\tnoreorder\n\t"10061006 "nop\n"10071007 "breakinst:\tbreak\n\t"···10141014void async_breakpoint(void)10151015{10161016 __asm__ __volatile__(10171017- ".globl async_breakinst\n\t" 10171017+ ".globl async_breakinst\n\t"10181018 ".set\tnoreorder\n\t"10191019 "nop\n"10201020 "async_breakinst:\tbreak\n\t"
+2-2
arch/mips/kernel/genex.S
···246246 LONG_L a1, PT_EPC(sp)247247#if CONFIG_32BIT248248 PRINT("Got \nexception at %08lx\012")249249-#endif 249249+#endif250250#if CONFIG_64BIT251251 PRINT("Got \nexception at %016lx\012")252252-#endif 252252+#endif253253 .endm254254255255 .macro __BUILD_count exception
···3535/*3636 * FPU context is saved iff the process has used it's FPU in the current3737 * time slice as indicated by TIF_USEDFPU. In any case, the CU1 bit for user3838- * space STATUS register should be 0, so that a process *always* starts its 3838+ * space STATUS register should be 0, so that a process *always* starts its3939 * userland with FPU disabled after each context switch.4040 *4141 * FPU will be enabled as soon as the process accesses FPU again, through···5555 cpu_save_nonscratch a05656 sw ra, THREAD_REG31(a0)57575858- /* 5858+ /*5959 * check if we need to save FPU registers6060 */6161 lw t3, TASK_THREAD_INFO(a0)
+2-2
arch/mips/kernel/r4k_switch.S
···3333/*3434 * FPU context is saved iff the process has used it's FPU in the current3535 * time slice as indicated by _TIF_USEDFPU. In any case, the CU1 bit for user3636- * space STATUS register should be 0, so that a process *always* starts its 3636+ * space STATUS register should be 0, so that a process *always* starts its3737 * userland with FPU disabled after each context switch.3838 *3939 * FPU will be enabled as soon as the process accesses FPU again, through···164164 dmtc1 t1, $f311651651:166166#endif167167-167167+168168#ifdef CONFIG_CPU_MIPS32169169 mtc1 t1, $f0170170 mtc1 t1, $f1
+1-1
arch/mips/kernel/signal32.c
···558558 if (!used_math())559559 goto out;560560561561- /* 561561+ /*562562 * Save FPU state to signal context. Signal handler will "inherit"563563 * current FPU state.564564 */
+1-1
arch/mips/kernel/vmlinux.lds.S
···1515 /* This is the value for an Origin kernel, taken from an IRIX kernel. */1616 /* . = 0xc00000000001c000; */17171818- /* Set the vaddr for the text segment to a value 1818+ /* Set the vaddr for the text segment to a value1919 >= 0xa800 0000 0001 9000 if no symmon is going to configured2020 >= 0xa800 0000 0030 0000 otherwise */2121
···2727 .word TIMESTAMP28282929 .org 0x503030-release: 3030+release:3131 .string VERSION
+2-2
arch/mips/lasat/interrupt.c
···1515 * with this program; if not, write to the Free Software Foundation, Inc.,1616 * 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.1717 *1818- * Routines for generic manipulation of the interrupts found on the 1818+ * Routines for generic manipulation of the interrupts found on the1919 * Lasat boards.2020 */2121#include <linux/init.h>···101101 return *lasat_int_status & *lasat_int_mask;102102}103103104104-static unsigned long get_int_status_200(void) 104104+static unsigned long get_int_status_200(void)105105{106106 unsigned long int_status;107107
+4-4
arch/mips/lasat/lasat_board.c
···67676868 if (mips_machtype == MACH_LASAT_100) {6969 lasat_board_info.li_flash_base = 0x1e000000;7070-7070+7171 lb[LASAT_MTD_BOOTLOADER] = 0x1e400000;72727373 if (lasat_board_info.li_flash_size > 0x200000) {···103103 memset(&lasat_board_info, 0, sizeof(lasat_board_info));104104105105 /* First read the EEPROM info */106106- EEPROMRead(0, (unsigned char *)&lasat_board_info.li_eeprom_info, 106106+ EEPROMRead(0, (unsigned char *)&lasat_board_info.li_eeprom_info,107107 sizeof(struct lasat_eeprom_struct));108108109109 /* Check the CRC */···188188 case 0x1:189189 lasat_board_info.li_cpu_hz =190190 lasat_board_info.li_bus_hz +191191- (lasat_board_info.li_bus_hz >> 1); 191191+ (lasat_board_info.li_bus_hz >> 1);192192 break;193193 case 0x2:194194 lasat_board_info.li_cpu_hz =···271271 lasat_board_info.li_eeprom_info.crc32 = crc;272272273273 /* Write the EEPROM info */274274- EEPROMWrite(0, (unsigned char *)&lasat_board_info.li_eeprom_info, 274274+ EEPROMWrite(0, (unsigned char *)&lasat_board_info.li_eeprom_info,275275 sizeof(struct lasat_eeprom_struct));276276}277277
+6-6
arch/mips/lasat/picvue.c
···11-/* 11+/*22 * Picvue PVC160206 display driver33 *44- * Brian Murphy <brian@murphy.dk> 44+ * Brian Murphy <brian@murphy.dk>55 *66 */77#include <linux/kernel.h>···24242525DECLARE_MUTEX(pvc_sem);26262727-static void pvc_reg_write(u32 val) 2727+static void pvc_reg_write(u32 val)2828{2929 *picvue->reg = val;3030}31313232-static u32 pvc_reg_read(void) 3232+static u32 pvc_reg_read(void)3333{3434 u32 tmp = *picvue->reg;3535 return tmp;···6565{6666 u32 data = pvc_reg_read();6767 u8 byte;6868- data |= picvue->rw; 6868+ data |= picvue->rw;6969 data &= ~picvue->rs;7070 pvc_reg_write(data);7171 ndelay(40);7272 byte = pvc_read_byte(data);7373- data |= picvue->rs; 7373+ data |= picvue->rs;7474 pvc_reg_write(data);7575 return byte;7676}
+2-2
arch/mips/lasat/picvue.h
···11-/* 11+/*22 * Picvue PVC160206 display driver33 *44- * Brian Murphy <brian.murphy@eicon.com> 44+ * Brian Murphy <brian.murphy@eicon.com>55 *66 */77#include <asm/semaphore.h>
···101101#define NBYTES 8102102#define LOG_NBYTES 3103103104104-/* 104104+/*105105 * As we are sharing code base with the mips32 tree (which use the o32 ABI106106 * register definitions). We need to redefine the register definitions from107107 * the n64 ABI register naming to the o32 ABI register naming.···118118#define t5 $13119119#define t6 $14120120#define t7 $15121121-121121+122122#else123123124124#define LOAD lw
+1-1
arch/mips/mips-boards/atlas/atlas_int.c
···122122 int i;123123124124 atlas_hw0_icregs = (struct atlas_ictrl_regs *)ioremap (ATLAS_ICTRL_REGS_BASE, sizeof(struct atlas_ictrl_regs *));125125-125125+126126 /*127127 * Mask out all interrupt by writing "1" to all bit position in128128 * the interrupt reset reg.
···8989 * really calculate the timer frequency9090 * For now we hardwire the SEAD board frequency to 12MHz.9191 */9292-9292+9393 if ((prid == (PRID_COMP_MIPS | PRID_IMP_20KC)) ||9494 (prid == (PRID_COMP_MIPS | PRID_IMP_25KF)))9595 count = 12000000;
···126126127127 CACHE32_UNROLL32_ALIGN2;128128 /* I'm in even chunk. blast odd chunks */129129- for (ws = 0; ws < ws_end; ws += ws_inc) 130130- for (addr = start + 0x400; addr < end; addr += 0x400 * 2) 129129+ for (ws = 0; ws < ws_end; ws += ws_inc)130130+ for (addr = start + 0x400; addr < end; addr += 0x400 * 2)131131 cache32_unroll32(addr|ws,Index_Invalidate_I);132132 CACHE32_UNROLL32_ALIGN;133133 /* I'm in odd chunk. blast even chunks */134134- for (ws = 0; ws < ws_end; ws += ws_inc) 135135- for (addr = start; addr < end; addr += 0x400 * 2) 134134+ for (ws = 0; ws < ws_end; ws += ws_inc)135135+ for (addr = start; addr < end; addr += 0x400 * 2)136136 cache32_unroll32(addr|ws,Index_Invalidate_I);137137}138138···156156157157 CACHE32_UNROLL32_ALIGN2;158158 /* I'm in even chunk. blast odd chunks */159159- for (ws = 0; ws < ws_end; ws += ws_inc) 160160- for (addr = start + 0x400; addr < end; addr += 0x400 * 2) 159159+ for (ws = 0; ws < ws_end; ws += ws_inc)160160+ for (addr = start + 0x400; addr < end; addr += 0x400 * 2)161161 cache32_unroll32(addr|ws,Index_Invalidate_I);162162 CACHE32_UNROLL32_ALIGN;163163 /* I'm in odd chunk. blast even chunks */164164- for (ws = 0; ws < ws_end; ws += ws_inc) 165165- for (addr = start; addr < end; addr += 0x400 * 2) 164164+ for (ws = 0; ws < ws_end; ws += ws_inc)165165+ for (addr = start; addr < end; addr += 0x400 * 2)166166 cache32_unroll32(addr|ws,Index_Invalidate_I);167167}168168
+1-1
arch/mips/mm/c-sb1.c
···270270 __sb1_writeback_inv_dcache_all();271271 else272272 __sb1_writeback_inv_dcache_range(start, end);273273-273273+274274 /* Just flush the whole icache if the range is big enough */275275 if ((end - start) > icache_range_cutoff)276276 __sb1_flush_icache_all();
+12-12
arch/mips/mm/cerr-sb1.c
···2525#include <asm/sibyte/sb1250_regs.h>2626#include <asm/sibyte/sb1250_scd.h>2727#endif2828-2828+2929/* SB1 definitions */30303131/* XXX should come from config1 XXX */···136136137137#ifndef CONFIG_SIBYTE_BUS_WATCHER138138139139-static void check_bus_watcher(void) 140140-{ 139139+static void check_bus_watcher(void)140140+{141141 uint32_t status, l2_err, memio_err;142142143143 /* Destructive read, clears register and interrupt */144144 status = csr_in32(IOADDR(A_SCD_BUS_ERR_STATUS));145145 /* Bit 31 is always on, but there's no #define for that */146146- if (status & ~(1UL << 31)) { 146146+ if (status & ~(1UL << 31)) {147147 l2_err = csr_in32(IOADDR(A_BUS_L2_ERRORS));148148 memio_err = csr_in32(IOADDR(A_BUS_MEM_IO_ERRORS));149149 prom_printf("Bus watcher error counters: %08x %08x\n", l2_err, memio_err);···153153 (int)(G_SCD_BERR_TID(status) >> 6),154154 (int)G_SCD_BERR_RID(status),155155 (int)G_SCD_BERR_DCODE(status));156156- } else { 157157- prom_printf("Bus watcher indicates no error\n"); 158158- } 159159-} 160160-#else 161161-extern void check_bus_watcher(void); 162162-#endif 163163-156156+ } else {157157+ prom_printf("Bus watcher indicates no error\n");158158+ }159159+}160160+#else161161+extern void check_bus_watcher(void);162162+#endif163163+164164asmlinkage void sb1_cache_error(void)165165{166166 uint64_t cerr_dpa;
+5-5
arch/mips/mm/dma-noncoherent.c
···162162163163 for (i = 0; i < nents; i++, sg++) {164164 unsigned long addr;165165-165165+166166 addr = (unsigned long) page_address(sg->page);167167 if (addr)168168 __dma_sync(addr + sg->offset, sg->length, direction);···230230 size_t size, enum dma_data_direction direction)231231{232232 unsigned long addr;233233-233233+234234 BUG_ON(direction == DMA_NONE);235235-235235+236236 addr = dma_handle + PAGE_OFFSET;237237 __dma_sync(addr, size, direction);238238}···282282 enum dma_data_direction direction)283283{284284 int i;285285-285285+286286 BUG_ON(direction == DMA_NONE);287287-287287+288288 /* Make sure that gcc doesn't leave the empty loop body. */289289 for (i = 0; i < nelems; i++, sg++)290290 __dma_sync((unsigned long)page_address(sg->page),
+1-1
arch/mips/mm/pg-sb1.c
···198198199199/*200200 * Pad descriptors to cacheline, since each is exclusively owned by a201201- * particular CPU. 201201+ * particular CPU.202202 */203203typedef struct dmadscr_s {204204 u64 dscr_a;
···67676868 /* turn the clock off and read-strobe */6969 OCELOT_FPGA_WRITE((val << 2) | cs | 0x10, EEPROM_MODE);7070-7070+7171 /* return the data */7272 return ((OCELOT_FPGA_READ(EEPROM_MODE) >> 3) & 0x1);7373}
+1-1
arch/mips/pci/fixup-ddb5074.c
···55{66 extern struct pci_dev *pci_pmu;77 u8 t8;88-88+99 pci_pmu = dev; /* for LEDs D2 and D3 */1010 /* Program the lines for LEDs D2 and D3 to output */1111 pci_read_config_byte(dev, 0x7d, &t8);
···3232 * Device 4: Unused3333 * Device 5: Slot 23434 * Device 6: Slot 33535- * Device 7: Slot 4 3535+ * Device 7: Slot 43636 *3737 * Documentation says the VGA is device 5 and device 3 is unused but that3838 * seem to be a documentation error. At least on my RM200C the Cirrus
···11/*22 * Copyright 2001 MontaVista Software Inc.33 * Author: MontaVista Software, Inc.44- * ahennessy@mvista.com 44+ * ahennessy@mvista.com55 *66- * Copyright (C) 2000-2001 Toshiba Corporation 66+ * Copyright (C) 2000-2001 Toshiba Corporation77 * Copyright (C) 2004 by Ralf Baechle (ralf@linux-mips.org)88 *99 * Based on arch/mips/ddb5xxx/ddb5477/pci_ops.c1010 *1111 * Define the pci_ops for the Toshiba rbtx49271212 *1313- * Much of the code is derived from the original DDB5074 port by 1313+ * Much of the code is derived from the original DDB5074 port by1414 * Geert Uytterhoeven <geert@sonycom.com>1515 *1616 * Copyright 2004 MontaVista Software Inc.
+4-4
arch/mips/pci/pci-ddb5477.c
···7676 */77777878/*7979- * irq mapping : device -> pci int # -> vrc4377 irq# , 7979+ * irq mapping : device -> pci int # -> vrc4377 irq# ,8080 * ddb5477 board manual page 4 and vrc5477 manual page 468181 */8282···137137 unsigned char *slot_irq_map;138138 unsigned char irq;139139140140- /* 140140+ /*141141 * We ignore the swizzled slot and pin values. The original142142- * pci_fixup_irq() codes largely base irq number on the dev slot 142142+ * pci_fixup_irq() codes largely base irq number on the dev slot143143 * numbers because except for one case they are unique even144144 * though there are multiple pci buses.145145 */···160160161161 if (mips_machtype == MACH_NEC_ROCKHOPPERII) {162162 /* hack to distinquish overlapping slot 20s, one163163- * on bus 0 (ALI USB on the M1535 on the backplane), 163163+ * on bus 0 (ALI USB on the M1535 on the backplane),164164 * and one on bus 2 (NEC USB controller on the CPU board)165165 * Make the M1535 USB - ISA IRQ number 9.166166 */
+2-2
arch/mips/pci/pci.c
···132132 hose->need_domain_info = need_domain_info;133133 next_busno = bus->subordinate + 1;134134 /* Don't allow 8-bit bus number overflow inside the hose -135135- reserve some space for bridges. */ 135135+ reserve some space for bridges. */136136 if (next_busno > 224) {137137 next_busno = 0;138138 need_domain_info = 1;···260260 (dev->class >> 8) == PCI_CLASS_BRIDGE_PCI) {261261 pci_read_bridge_bases(bus);262262 pcibios_fixup_device_resources(dev, bus);263263- } 263263+ }264264265265 for (ln = bus->devices.next; ln != &bus->devices; ln = ln->next) {266266 struct pci_dev *dev = pci_dev_b(ln);
+7-7
arch/mips/pmc-sierra/yosemite/atmel_read_eeprom.c
···3030 *3131 * This code reads the ATMEL 24CXX EEPROM. The PMC-Sierra Yosemite board uses the ATMEL3232 * 24C32/24C64 which uses two byte addressing as compared to 24C16. Note that this program3333- * uses the serial port like /dev/ttyS0, to communicate with the EEPROM. Hence, you are 3333+ * uses the serial port like /dev/ttyS0, to communicate with the EEPROM. Hence, you are3434 * expected to have a connectivity from the EEPROM to the serial port. This program does3535 * __not__ communicate using the I2C protocol3636 */···6464static void send_byte(unsigned char byte)6565{6666 int i = 0;6767-6868- for (i = 7; i >= 0; i--) 6767+6868+ for (i = 7; i >= 0; i--)6969 send_bit((byte >> i) & 0x01);7070}7171-7171+7272static void send_start(void)7373{7474- sda_hi; 7474+ sda_hi;7575 delay(TXX);7676 scl_hi;7777 delay(TXX);···114114 int i;115115 unsigned char byte=0;116116117117- for (i=7;i>=0;i--) 117117+ for (i=7;i>=0;i--)118118 byte |= (recv_bit() << i);119119-119119+120120 return byte;121121}122122
+2-2
arch/mips/pmc-sierra/yosemite/atmel_read_eeprom.h
···2727 */28282929/*3030- * Header file for atmel_read_eeprom.c 3030+ * Header file for atmel_read_eeprom.c3131 */32323333#include <linux/types.h>···4646#define DEFAULT_PORT "/dev/ttyS0" /* Port to open */4747#define TXX 0 /* Dummy loop for spinning */48484949-#define BLOCK_SEL 0x00 4949+#define BLOCK_SEL 0x005050#define SLAVE_ADDR 0xa05151#define READ_BIT 0x015252#define WRITE_BIT 0x00
+1-1
arch/mips/sgi-ip22/ip22-eisa.c
···242242 int i, c;243243 char *str;244244 u8 *slot_addr;245245-245245+246246 if (!(sgimc->systemid & SGIMC_SYSID_EPRESENT)) {247247 printk(KERN_INFO "EISA: bus not present.\n");248248 return 1;
···3939 *ptr |= EEPROM_CSEL; \4040 *ptr |= EEPROM_ECLK; })41414242-4242+4343#define eeprom_cs_off(ptr) ({ \4444 *ptr &= ~EEPROM_ECLK; \4545 *ptr &= ~EEPROM_CSEL; \···5050/*5151 * clock in the nvram command and the register number. For the5252 * national semiconductor nv ram chip the op code is 3 bits and5353- * the address is 6/8 bits. 5353+ * the address is 6/8 bits.5454 */5555static inline void eeprom_cmd(volatile unsigned int *ctrl, unsigned cmd,5656 unsigned reg)···9090 if (*ctrl & EEPROM_DATI)9191 res |= 1;9292 }9393-9393+9494 eeprom_cs_off(ctrl);95959696 return res;···113113 reg <<= 1;114114 tmp = hpc3c0->bbram[reg++] & 0xff;115115 return (tmp << 8) | (hpc3c0->bbram[reg] & 0xff);116116- } 116116+ }117117}118118119119EXPORT_SYMBOL(ip22_nvram_read);
+1-1
arch/mips/sgi-ip22/ip22-reset.c
···185185 add_timer(&debounce_timer);186186 }187187188188- /* Power button was pressed 188188+ /* Power button was pressed189189 * ioc.ps page 22: "The Panel Register is called Power Control by Full190190 * House. Only lowest 2 bits are used. Guiness uses upper four bits191191 * for volume control". This is not true, all bits are pulled high
+1-1
arch/mips/sgi-ip22/ip22-time.c
···126126 unsigned long r4k_ticks[3];127127 unsigned long r4k_tick;128128129129- /* 129129+ /*130130 * Figure out the r4k offset, the algorithm is very simple and works in131131 * _all_ cases as long as the 8254 counter register itself works ok (as132132 * an interrupt driving timer it does not because of bug, this is why
+1-1
arch/mips/sgi-ip27/ip27-memory.c
···538538 for_each_online_node(node) {539539 unsigned slot, numslots;540540 struct page *end, *p;541541-541541+542542 /*543543 * This will free up the bootmem, ie, slot 0 memory.544544 */
+1-1
arch/mips/sgi-ip32/ip32-reset.c
···140140141141 reg_c = CMOS_READ(RTC_INTR_FLAGS);142142 if (!(reg_c & RTC_IRQF)) {143143- printk(KERN_WARNING 143143+ printk(KERN_WARNING144144 "%s: RTC IRQ without RTC_IRQF\n", __FUNCTION__);145145 }146146 /* Wait until interrupt goes away */
···1010 * but WITHOUT ANY WARRANTY; without even the implied warranty of1111 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1212 * GNU General Public License for more details.1313- * 1313+ *1414 * You should have received a copy of the GNU General Public License1515 * along with this program; if not, write to the Free Software1616 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.1717 */18181919-/* 1919+/*2020 * The Bus Watcher monitors internal bus transactions and maintains2121 * counts of transactions with error status, logging details and2222 * causing one of several interrupts. This driver provides a handler···155155static void create_proc_decoder(struct bw_stats_struct *stats)156156{157157 struct proc_dir_entry *ent;158158-158158+159159 ent = create_proc_read_entry("bus_watcher", S_IWUSR | S_IRUGO, NULL,160160 bw_read_proc, stats);161161 if (!ent) {
+2-2
arch/mips/sibyte/sb1250/irq.c
···377377378378 /*379379 * Note that the timer interrupts are also mapped, but this is380380- * done in sb1250_time_init(). Also, the profiling driver 380380+ * done in sb1250_time_init(). Also, the profiling driver381381 * does its own management of IP7.382382 */383383···392392 if (kgdb_flag) {393393 kgdb_irq = K_INT_UART_0 + kgdb_port;394394395395-#ifdef CONFIG_SIBYTE_SB1250_DUART 395395+#ifdef CONFIG_SIBYTE_SB1250_DUART396396 sb1250_duart_present[kgdb_port] = 0;397397#endif398398 /* Setup uart 1 settings, mapper */
+5-5
arch/mips/sibyte/swarm/rtc_m41t81.c
···128128 /* Clear error bit by writing a 1 */129129 bus_writeq(M_SMB_ERROR, SMB_CSR(R_SMB_STATUS));130130 return -1;131131- } 131131+ }132132133133 /* read the same byte again to make sure it is written */134134 bus_writeq(V_SMB_ADDR(M41T81_CCR_ADDRESS) | V_SMB_TT_RD1BYTE,···136136137137 while (bus_readq(SMB_CSR(R_SMB_STATUS)) & M_SMB_BUSY)138138 ;139139-139139+140140 return 0;141141}142142···148148149149 /*150150 * Note the write order matters as it ensures the correctness.151151- * When we write sec, 10th sec is clear. It is reasonable to 151151+ * When we write sec, 10th sec is clear. It is reasonable to152152 * believe we should finish writing min within a second.153153 */154154155155 tm.tm_sec = BIN2BCD(tm.tm_sec);156156 m41t81_write(M41T81REG_SC, tm.tm_sec);157157-157157+158158 tm.tm_min = BIN2BCD(tm.tm_min);159159 m41t81_write(M41T81REG_MN, tm.tm_min);160160···187187{188188 unsigned int year, mon, day, hour, min, sec;189189190190- /* 190190+ /*191191 * min is valid if two reads of sec are the same.192192 */193193 for (;;) {
···103103104104/*105105 * hwint 1 deals with EISA and SCSI interrupts,106106- * 106106+ *107107 * The EISA_INT bit in CSITPEND is high active, all others are low active.108108 */109109void pciasic_hwint1(struct pt_regs *regs)
+1-1
arch/mips/sni/setup.c
···111111 * The RM200/RM300 has a few holes in it's PCI/EISA memory address space used112112 * for other purposes. Be paranoid and allocate all of the before the PCI113113 * code gets a chance to to map anything else there ...114114- * 114114+ *115115 * This leaves the following areas available:116116 *117117 * 0x10000000 - 0x1009ffff (640kB) PCI/EISA/ISA Bus Memory
+3-3
arch/mips/tx4927/common/tx4927_irq_handler.S
···4242 CLI4343 .set at44444545- mfc0 t0, CP0_CAUSE 4545+ mfc0 t0, CP0_CAUSE4646 mfc0 t1, CP0_STATUS4747 and t0, t14848-4848+4949 andi t1, t0, STATUSF_IP7 /* cpu timer */5050 bnez t1, ll_ip75151-5151+5252 /* IP6..IP3 multiplexed -- do not use */53535454 andi t1, t0, STATUSF_IP2 /* tx4927 pic */
···395395 /* enable secondary ide */396396 v08_43 |= 0x80;397397398398- /* 398398+ /*399399 * !!! DO NOT REMOVE THIS COMMENT IT IS REQUIRED BY SMSC !!!400400 *401401 * This line of code is intended to provide the user with a work
···171171 unsigned long start = INDEX_BASE;172172 unsigned long end = start + current_cpu_data.dcache.waysize;173173 unsigned long ws_inc = 1UL << current_cpu_data.dcache.waybit;174174- unsigned long ws_end = current_cpu_data.dcache.ways << 174174+ unsigned long ws_end = current_cpu_data.dcache.ways <<175175 current_cpu_data.dcache.waybit;176176 unsigned long ws, addr;177177178178- for (ws = 0; ws < ws_end; ws += ws_inc) 178178+ for (ws = 0; ws < ws_end; ws += ws_inc)179179 for (addr = start; addr < end; addr += 0x200)180180 cache16_unroll32(addr|ws,Index_Writeback_Inv_D);181181}···200200 current_cpu_data.dcache.waybit;201201 unsigned long ws, addr;202202203203- for (ws = 0; ws < ws_end; ws += ws_inc) 204204- for (addr = start; addr < end; addr += 0x200) 203203+ for (ws = 0; ws < ws_end; ws += ws_inc)204204+ for (addr = start; addr < end; addr += 0x200)205205 cache16_unroll32(addr|ws,Index_Writeback_Inv_D);206206}207207···214214 current_cpu_data.icache.waybit;215215 unsigned long ws, addr;216216217217- for (ws = 0; ws < ws_end; ws += ws_inc) 218218- for (addr = start; addr < end; addr += 0x200) 217217+ for (ws = 0; ws < ws_end; ws += ws_inc)218218+ for (addr = start; addr < end; addr += 0x200)219219 cache16_unroll32(addr|ws,Index_Invalidate_I);220220}221221···239239 current_cpu_data.icache.waybit;240240 unsigned long ws, addr;241241242242- for (ws = 0; ws < ws_end; ws += ws_inc) 243243- for (addr = start; addr < end; addr += 0x200) 242242+ for (ws = 0; ws < ws_end; ws += ws_inc)243243+ for (addr = start; addr < end; addr += 0x200)244244 cache16_unroll32(addr|ws,Index_Invalidate_I);245245}246246···249249 unsigned long start = INDEX_BASE;250250 unsigned long end = start + current_cpu_data.scache.waysize;251251 unsigned long ws_inc = 1UL << current_cpu_data.scache.waybit;252252- unsigned long ws_end = current_cpu_data.scache.ways << 252252+ unsigned long ws_end = current_cpu_data.scache.ways <<253253 current_cpu_data.scache.waybit;254254 unsigned long ws, addr;255255256256- for (ws = 0; ws < ws_end; ws += ws_inc) 256256+ for (ws = 0; ws < ws_end; ws += ws_inc)257257 for (addr = start; addr < end; addr += 0x200)258258 cache16_unroll32(addr|ws,Index_Writeback_Inv_SD);259259}···278278 current_cpu_data.scache.waybit;279279 unsigned long ws, addr;280280281281- for (ws = 0; ws < ws_end; ws += ws_inc) 282282- for (addr = start; addr < end; addr += 0x200) 281281+ for (ws = 0; ws < ws_end; ws += ws_inc)282282+ for (addr = start; addr < end; addr += 0x200)283283 cache16_unroll32(addr|ws,Index_Writeback_Inv_SD);284284}285285···318318 current_cpu_data.dcache.waybit;319319 unsigned long ws, addr;320320321321- for (ws = 0; ws < ws_end; ws += ws_inc) 322322- for (addr = start; addr < end; addr += 0x400) 321321+ for (ws = 0; ws < ws_end; ws += ws_inc)322322+ for (addr = start; addr < end; addr += 0x400)323323 cache32_unroll32(addr|ws,Index_Writeback_Inv_D);324324}325325···343343 current_cpu_data.dcache.waybit;344344 unsigned long ws, addr;345345346346- for (ws = 0; ws < ws_end; ws += ws_inc) 347347- for (addr = start; addr < end; addr += 0x400) 346346+ for (ws = 0; ws < ws_end; ws += ws_inc)347347+ for (addr = start; addr < end; addr += 0x400)348348 cache32_unroll32(addr|ws,Index_Writeback_Inv_D);349349}350350···357357 current_cpu_data.icache.waybit;358358 unsigned long ws, addr;359359360360- for (ws = 0; ws < ws_end; ws += ws_inc) 361361- for (addr = start; addr < end; addr += 0x400) 360360+ for (ws = 0; ws < ws_end; ws += ws_inc)361361+ for (addr = start; addr < end; addr += 0x400)362362 cache32_unroll32(addr|ws,Index_Invalidate_I);363363}364364···383383 unsigned long ws, addr;384384385385 for (ws = 0; ws < ws_end; ws += ws_inc)386386- for (addr = start; addr < end; addr += 0x400) 386386+ for (addr = start; addr < end; addr += 0x400)387387 cache32_unroll32(addr|ws,Index_Invalidate_I);388388}389389···392392 unsigned long start = INDEX_BASE;393393 unsigned long end = start + current_cpu_data.scache.waysize;394394 unsigned long ws_inc = 1UL << current_cpu_data.scache.waybit;395395- unsigned long ws_end = current_cpu_data.scache.ways << 395395+ unsigned long ws_end = current_cpu_data.scache.ways <<396396 current_cpu_data.scache.waybit;397397 unsigned long ws, addr;398398399399- for (ws = 0; ws < ws_end; ws += ws_inc) 399399+ for (ws = 0; ws < ws_end; ws += ws_inc)400400 for (addr = start; addr < end; addr += 0x400)401401 cache32_unroll32(addr|ws,Index_Writeback_Inv_SD);402402}···421421 current_cpu_data.scache.waybit;422422 unsigned long ws, addr;423423424424- for (ws = 0; ws < ws_end; ws += ws_inc) 425425- for (addr = start; addr < end; addr += 0x400) 424424+ for (ws = 0; ws < ws_end; ws += ws_inc)425425+ for (addr = start; addr < end; addr += 0x400)426426 cache32_unroll32(addr|ws,Index_Writeback_Inv_SD);427427}428428···461461 current_cpu_data.icache.waybit;462462 unsigned long ws, addr;463463464464- for (ws = 0; ws < ws_end; ws += ws_inc) 465465- for (addr = start; addr < end; addr += 0x800) 464464+ for (ws = 0; ws < ws_end; ws += ws_inc)465465+ for (addr = start; addr < end; addr += 0x800)466466 cache64_unroll32(addr|ws,Index_Invalidate_I);467467}468468···487487 unsigned long ws, addr;488488489489 for (ws = 0; ws < ws_end; ws += ws_inc)490490- for (addr = start; addr < end; addr += 0x800) 490490+ for (addr = start; addr < end; addr += 0x800)491491 cache64_unroll32(addr|ws,Index_Invalidate_I);492492}493493···496496 unsigned long start = INDEX_BASE;497497 unsigned long end = start + current_cpu_data.scache.waysize;498498 unsigned long ws_inc = 1UL << current_cpu_data.scache.waybit;499499- unsigned long ws_end = current_cpu_data.scache.ways << 499499+ unsigned long ws_end = current_cpu_data.scache.ways <<500500 current_cpu_data.scache.waybit;501501 unsigned long ws, addr;502502503503- for (ws = 0; ws < ws_end; ws += ws_inc) 503503+ for (ws = 0; ws < ws_end; ws += ws_inc)504504 for (addr = start; addr < end; addr += 0x800)505505 cache64_unroll32(addr|ws,Index_Writeback_Inv_SD);506506}···525525 current_cpu_data.scache.waybit;526526 unsigned long ws, addr;527527528528- for (ws = 0; ws < ws_end; ws += ws_inc) 529529- for (addr = start; addr < end; addr += 0x800) 528528+ for (ws = 0; ws < ws_end; ws += ws_inc)529529+ for (addr = start; addr < end; addr += 0x800)530530 cache64_unroll32(addr|ws,Index_Writeback_Inv_SD);531531}532532···561561 unsigned long start = INDEX_BASE;562562 unsigned long end = start + current_cpu_data.scache.waysize;563563 unsigned long ws_inc = 1UL << current_cpu_data.scache.waybit;564564- unsigned long ws_end = current_cpu_data.scache.ways << 564564+ unsigned long ws_end = current_cpu_data.scache.ways <<565565 current_cpu_data.scache.waybit;566566 unsigned long ws, addr;567567568568- for (ws = 0; ws < ws_end; ws += ws_inc) 568568+ for (ws = 0; ws < ws_end; ws += ws_inc)569569 for (addr = start; addr < end; addr += 0x1000)570570 cache128_unroll32(addr|ws,Index_Writeback_Inv_SD);571571}···590590 current_cpu_data.scache.waybit;591591 unsigned long ws, addr;592592593593- for (ws = 0; ws < ws_end; ws += ws_inc) 594594- for (addr = start; addr < end; addr += 0x1000) 593593+ for (ws = 0; ws < ws_end; ws += ws_inc)594594+ for (addr = start; addr < end; addr += 0x1000)595595 cache128_unroll32(addr|ws,Index_Writeback_Inv_SD);596596}597597
+1-1
include/asm-mips/rtc.h
···11/*22- * include/asm-mips/rtc.h 22+ * include/asm-mips/rtc.h33 *44 * (Really an interface for drivers/char/genrtc.c)55 *
+1-1
include/asm-mips/sgi/gio.h
···1616 *1717 * The Indigo and Indy have two GIO bus connectors. Indigo2 (all models) have1818 * three physical connectors, but only two slots, GFX and EXP0.1919- * 1919+ *2020 * There is 10MB of GIO address space for GIO64 slot devices2121 * slot# slot type address range size2222 * ----- --------- ----------------------- -----
+2-2
include/asm-mips/sgi/hpc3.h
···221221#define HPC3_BESTAT_PIDMASK 0x3f700 /* DMA channel parity identifier */222222223223 u32 _unused1[0x14000/4 - 5]; /* padding */224224-224224+225225 /* Now direct PIO per-HPC3 peripheral access to external regs. */226226 volatile u32 scsi0_ext[256]; /* SCSI channel 0 external regs */227227 u32 _unused2[0x7c00/4];···304304 volatile u32 bbram[8192-50-14]; /* Battery backed ram */305305};306306307307-/* 307307+/*308308 * It is possible to have two HPC3's within the address space on309309 * one machine, though only having one is more likely on an Indy.310310 */
+2-2
include/asm-mips/sgi/ioc.h
···1616#include <linux/types.h>1717#include <asm/sgi/pi1.h>18181919-/* 1919+/*2020 * All registers are 8-bit wide alligned on 32-bit boundary. Bad things2121 * happen if you try word access them. You have been warned.2222 */···138138 u8 _sysid[3];139139 volatile u8 sysid;140140#define SGIOC_SYSID_FULLHOUSE 0x01141141-#define SGIOC_SYSID_BOARDREV(x) ((x & 0xe0) > 5) 141141+#define SGIOC_SYSID_BOARDREV(x) ((x & 0xe0) > 5)142142#define SGIOC_SYSID_CHIPREV(x) ((x & 0x1e) > 1)143143 u32 _unused2;144144 u8 _read[3];
+1-1
include/asm-mips/sgi/ip22.h
···1212#ifndef _SGI_IP22_H1313#define _SGI_IP22_H14141515-/* 1515+/*1616 * These are the virtual IRQ numbers, we divide all IRQ's into1717 * 'spaces', the 'space' determines where and how to enable/disable1818 * that particular IRQ on an SGI machine. HPC DMA and MC DMA interrups
···11/* *********************************************************************22 * SB1250 Board Support Package33- * 44- * Global constants and macros File: sb1250_defs.h 55- * 33+ *44+ * Global constants and macros File: sb1250_defs.h55+ *66 * This file contains macros and definitions used by the other77 * include files.88 *99 * SB1250 specification level: User's manual 1/02/021010- * 1010+ *1111 * Author: Mitch Lichtenberg1212- * 1313- ********************************************************************* 1212+ *1313+ *********************************************************************1414 *1515 * Copyright 2000,2001,2002,20031616 * Broadcom Corporation. All rights reserved.1717- * 1818- * This program is free software; you can redistribute it and/or 1919- * modify it under the terms of the GNU General Public License as 2020- * published by the Free Software Foundation; either version 2 of 1717+ *1818+ * This program is free software; you can redistribute it and/or1919+ * modify it under the terms of the GNU General Public License as2020+ * published by the Free Software Foundation; either version 2 of2121 * the License, or (at your option) any later version.2222 *2323 * This program is distributed in the hope that it will be useful,···2727 *2828 * You should have received a copy of the GNU General Public License2929 * along with this program; if not, write to the Free Software3030- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 3030+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,3131 * MA 02111-1307 USA3232 ********************************************************************* */3333···105105#define SIBYTE_HDR_FMASK_112x_ALL 0x0000f00106106#define SIBYTE_HDR_FMASK_112x_PASS1 0x0000100107107108108-/* Bit mask for chip/revision. (use _ALL for all revisions of a chip). */ 108108+/* Bit mask for chip/revision. (use _ALL for all revisions of a chip). */109109#define SIBYTE_HDR_FMASK(chip, pass) \110110 (SIBYTE_HDR_FMASK_ ## chip ## _ ## pass)111111#define SIBYTE_HDR_FMASK_ALLREVS(chip) \···150150151151/* *********************************************************************152152 * Naming schemes for constants in these files:153153- * 154154- * M_xxx MASK constant (identifies bits in a register). 153153+ *154154+ * M_xxx MASK constant (identifies bits in a register).155155 * For multi-bit fields, all bits in the field will156156 * be set.157157 *158158 * K_xxx "Code" constant (value for data in a multi-bit159159 * field). The value is right justified.160160 *161161- * V_xxx "Value" constant. This is the same as the 161161+ * V_xxx "Value" constant. This is the same as the162162 * corresponding "K_xxx" constant, except it is163163 * shifted to the correct position in the register.164164 *165165 * S_xxx SHIFT constant. This is the number of bits that166166- * a field value (code) needs to be shifted 166166+ * a field value (code) needs to be shifted167167 * (towards the left) to put the value in the right168168 * position for the register.169169 *170170- * A_xxx ADDRESS constant. This will be a physical 170170+ * A_xxx ADDRESS constant. This will be a physical171171 * address. Use the PHYS_TO_K1 macro to generate172172 * a K1SEG address.173173 *174174 * R_xxx RELATIVE offset constant. This is an offset from175175 * an A_xxx constant (usually the first register in176176 * a group).177177- * 177177+ *178178 * G_xxx(X) GET value. This macro obtains a multi-bit field179179 * from a register, masks it, and shifts it to180180 * the bottom of the register (retrieving a K_xxx···189189190190191191/*192192- * Cast to 64-bit number. Presumably the syntax is different in 192192+ * Cast to 64-bit number. Presumably the syntax is different in193193 * assembly language.194194 *195195 * Note: you'll need to define uint32_t and uint64_t in your headers.
+21-21
include/asm-mips/sibyte/sb1250_dma.h
···11/* *********************************************************************22 * SB1250 Board Support Package33- * 33+ *44 * DMA definitions File: sb1250_dma.h55- * 55+ *66 * This module contains constants and macros useful for77 * programming the SB1250's DMA controllers, both the data mover88 * and the Ethernet DMA.99- * 99+ *1010 * SB1250 specification level: User's manual 1/02/021111- * 1111+ *1212 * Author: Mitch Lichtenberg1313- * 1414- ********************************************************************* 1313+ *1414+ *********************************************************************1515 *1616 * Copyright 2000,2001,2002,20031717 * Broadcom Corporation. All rights reserved.1818- * 1919- * This program is free software; you can redistribute it and/or 2020- * modify it under the terms of the GNU General Public License as 2121- * published by the Free Software Foundation; either version 2 of 1818+ *1919+ * This program is free software; you can redistribute it and/or2020+ * modify it under the terms of the GNU General Public License as2121+ * published by the Free Software Foundation; either version 2 of2222 * the License, or (at your option) any later version.2323 *2424 * This program is distributed in the hope that it will be useful,···2828 *2929 * You should have received a copy of the GNU General Public License3030 * along with this program; if not, write to the Free Software3131- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 3131+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,3232 * MA 02111-1307 USA3333 ********************************************************************* */3434···4343 * DMA Registers4444 ********************************************************************* */45454646-/* 4646+/*4747 * Ethernet and Serial DMA Configuration Register 0 (Table 7-4)4848- * Registers: DMA_CONFIG0_MAC_x_RX_CH_0 4848+ * Registers: DMA_CONFIG0_MAC_x_RX_CH_04949 * Registers: DMA_CONFIG0_MAC_x_TX_CH_05050 * Registers: DMA_CONFIG0_SER_x_RX5151 * Registers: DMA_CONFIG0_SER_x_TX···98989999/*100100 * Ethernet and Serial DMA Configuration Register 1 (Table 7-5)101101- * Registers: DMA_CONFIG1_MAC_x_RX_CH_0 101101+ * Registers: DMA_CONFIG1_MAC_x_RX_CH_0102102 * Registers: DMA_CONFIG1_DMA_x_TX_CH_0103103 * Registers: DMA_CONFIG1_SER_x_RX104104 * Registers: DMA_CONFIG1_SER_x_TX···152152/*153153 * DMA Descriptor Count Registers (Table 7-8)154154 */155155-155155+156156/* No bitfields */157157158158159159-/* 159159+/*160160 * Current Descriptor Address Register (Table 7-11)161161 */162162···275275#define V_DMA_DSCRB_STATUS(x) _SB_MAKEVALUE(x,S_DMA_DSCRB_STATUS)276276#define G_DMA_DSCRB_STATUS(x) _SB_GETVALUE(x,S_DMA_DSCRB_STATUS,M_DMA_DSCRB_STATUS)277277278278-/* 278278+/*279279 * Ethernet Descriptor Status Bits (Table 7-15)280280 */281281282282#define M_DMA_ETHRX_BADIP4CS _SB_MAKEMASK1(51)283283#define M_DMA_ETHRX_DSCRERR _SB_MAKEMASK1(52)284284285285-#if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) 285285+#if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1)286286/* Note: BADTCPCS is actually in DSCR_B options field */287287#define M_DMA_ETHRX_BADTCPCS _SB_MAKEMASK1(0)288288#endif /* 1250 PASS2 || 112x PASS1 */···324324325325#define M_DMA_ETHTX_SOP _SB_MAKEMASK1(63)326326327327-/* 327327+/*328328 * Ethernet Transmit Options (Table 7-17)329329 */330330···377377 * Data Mover Registers378378 ********************************************************************* */379379380380-/* 380380+/*381381 * Data Mover Descriptor Base Address Register (Table 7-22)382382 * Register: DM_DSCR_BASE_0383383 * Register: DM_DSCR_BASE_1···414414#define M_DM_DSCR_BASE_ABORT _SB_MAKEMASK1(62)415415#define M_DM_DSCR_BASE_ENABL _SB_MAKEMASK1(63)416416417417-/* 417417+/*418418 * Data Mover Descriptor Count Register (Table 7-25)419419 */420420
+12-12
include/asm-mips/sibyte/sb1250_genbus.h
···11/* *********************************************************************22 * SB1250 Board Support Package33- * 33+ *44 * Generic Bus Constants File: sb1250_genbus.h55- * 66- * This module contains constants and macros useful for 55+ *66+ * This module contains constants and macros useful for77 * manipulating the SB1250's Generic Bus interface88- * 88+ *99 * SB1250 specification level: User's manual 1/02/021010- * 1010+ *1111 * Author: Mitch Lichtenberg1212- * 1313- ********************************************************************* 1212+ *1313+ *********************************************************************1414 *1515 * Copyright 2000,2001,2002,20031616 * Broadcom Corporation. All rights reserved.1717- * 1818- * This program is free software; you can redistribute it and/or 1919- * modify it under the terms of the GNU General Public License as 2020- * published by the Free Software Foundation; either version 2 of 1717+ *1818+ * This program is free software; you can redistribute it and/or1919+ * modify it under the terms of the GNU General Public License as2020+ * published by the Free Software Foundation; either version 2 of2121 * the License, or (at your option) any later version.2222 *2323 * This program is distributed in the hope that it will be useful,···2727 *2828 * You should have received a copy of the GNU General Public License2929 * along with this program; if not, write to the Free Software3030- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 3030+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,3131 * MA 02111-1307 USA3232 ********************************************************************* */3333
+12-12
include/asm-mips/sibyte/sb1250_int.h
···11/* *********************************************************************22 * SB1250 Board Support Package33- * 33+ *44 * Interrupt Mapper definitions File: sb1250_int.h55- * 55+ *66 * This module contains constants for manipulating the SB1250's77 * interrupt mapper and definitions for the interrupt sources.88- * 88+ *99 * SB1250 specification level: User's manual 1/02/021010- * 1010+ *1111 * Author: Mitch Lichtenberg1212- * 1313- ********************************************************************* 1212+ *1313+ *********************************************************************1414 *1515 * Copyright 2000,2001,2002,20031616 * Broadcom Corporation. All rights reserved.1717- * 1818- * This program is free software; you can redistribute it and/or 1919- * modify it under the terms of the GNU General Public License as 2020- * published by the Free Software Foundation; either version 2 of 1717+ *1818+ * This program is free software; you can redistribute it and/or1919+ * modify it under the terms of the GNU General Public License as2020+ * published by the Free Software Foundation; either version 2 of2121 * the License, or (at your option) any later version.2222 *2323 * This program is distributed in the hope that it will be useful,···2727 *2828 * You should have received a copy of the GNU General Public License2929 * along with this program; if not, write to the Free Software3030- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 3030+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,3131 * MA 02111-1307 USA3232 ********************************************************************* */3333···43434444/*4545 * Interrupt sources (Table 4-8, UM 0.2)4646- * 4646+ *4747 * First, the interrupt numbers.4848 */4949
+11-11
include/asm-mips/sibyte/sb1250_l2c.h
···11/* *********************************************************************22 * SB1250 Board Support Package33- * 33+ *44 * L2 Cache constants and macros File: sb1250_l2c.h55- * 55+ *66 * This module contains constants useful for manipulating the77 * level 2 cache.88- * 88+ *99 * SB1250 specification level: User's manual 1/02/021010- * 1010+ *1111 * Author: Mitch Lichtenberg1212- * 1313- ********************************************************************* 1212+ *1313+ *********************************************************************1414 *1515 * Copyright 2000,2001,2002,20031616 * Broadcom Corporation. All rights reserved.1717- * 1818- * This program is free software; you can redistribute it and/or 1919- * modify it under the terms of the GNU General Public License as 2020- * published by the Free Software Foundation; either version 2 of 1717+ *1818+ * This program is free software; you can redistribute it and/or1919+ * modify it under the terms of the GNU General Public License as2020+ * published by the Free Software Foundation; either version 2 of2121 * the License, or (at your option) any later version.2222 *2323 * This program is distributed in the hope that it will be useful,···2727 *2828 * You should have received a copy of the GNU General Public License2929 * along with this program; if not, write to the Free Software3030- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 3030+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,3131 * MA 02111-1307 USA3232 ********************************************************************* */3333
+16-16
include/asm-mips/sibyte/sb1250_ldt.h
···11/* *********************************************************************22 * SB1250 Board Support Package33- * 33+ *44 * LDT constants File: sb1250_ldt.h55- * 66- * This module contains constants and macros to describe 77- * the LDT interface on the SB1250. 88- * 55+ *66+ * This module contains constants and macros to describe77+ * the LDT interface on the SB1250.88+ *99 * SB1250 specification level: User's manual 1/02/021010- * 1010+ *1111 * Author: Mitch Lichtenberg1212- * 1313- ********************************************************************* 1212+ *1313+ *********************************************************************1414 *1515 * Copyright 2000,2001,2002,20031616 * Broadcom Corporation. All rights reserved.1717- * 1818- * This program is free software; you can redistribute it and/or 1919- * modify it under the terms of the GNU General Public License as 2020- * published by the Free Software Foundation; either version 2 of 1717+ *1818+ * This program is free software; you can redistribute it and/or1919+ * modify it under the terms of the GNU General Public License as2020+ * published by the Free Software Foundation; either version 2 of2121 * the License, or (at your option) any later version.2222 *2323 * This program is distributed in the hope that it will be useful,···2727 *2828 * You should have received a copy of the GNU General Public License2929 * along with this program; if not, write to the Free Software3030- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 3030+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,3131 * MA 02111-1307 USA3232 ********************************************************************* */3333···155155156156/*157157 * LDT Status Register (Table 8-14). Note that these constants158158- * assume you've read the command and status register 158158+ * assume you've read the command and status register159159 * together (32-bit read at offset 0x04)160160 *161161 * These bits also apply to the secondary status···183183#define M_LDT_STATUS_DETPARERR _SB_MAKEMASK1_32(31)184184185185/*186186- * Bridge Control Register (Table 8-16). Note that these 187187- * constants assume you've read the register as a 32-bit 186186+ * Bridge Control Register (Table 8-16). Note that these187187+ * constants assume you've read the register as a 32-bit188188 * read (offset 0x3C)189189 */190190
+13-13
include/asm-mips/sibyte/sb1250_mac.h
···11/* *********************************************************************22 * SB1250 Board Support Package33- * 33+ *44 * MAC constants and macros File: sb1250_mac.h55- * 55+ *66 * This module contains constants and macros for the SB1250's77 * ethernet controllers.88- * 88+ *99 * SB1250 specification level: User's manual 1/02/021010- * 1010+ *1111 * Author: Mitch Lichtenberg1212- * 1313- ********************************************************************* 1212+ *1313+ *********************************************************************1414 *1515 * Copyright 2000,2001,2002,20031616 * Broadcom Corporation. All rights reserved.1717- * 1818- * This program is free software; you can redistribute it and/or 1919- * modify it under the terms of the GNU General Public License as 2020- * published by the Free Software Foundation; either version 2 of 1717+ *1818+ * This program is free software; you can redistribute it and/or1919+ * modify it under the terms of the GNU General Public License as2020+ * published by the Free Software Foundation; either version 2 of2121 * the License, or (at your option) any later version.2222 *2323 * This program is distributed in the hope that it will be useful,···2727 *2828 * You should have received a copy of the GNU General Public License2929 * along with this program; if not, write to the Free Software3030- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 3030+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,3131 * MA 02111-1307 USA3232 ********************************************************************* */3333···311311312312/*313313 * These constants are used to configure the fields within the Frame314314- * Configuration Register. 314314+ * Configuration Register.315315 */316316317317#define K_MAC_IFG_RX_10 _SB_MAKE64(0) /* See table 176, not used */···393393 * Register: MAC_INT_MASK_2394394 */395395396396-/* 396396+/*397397 * Use these constants to shift the appropriate channel398398 * into the CH0 position so the same tests can be used399399 * on each channel.
+14-14
include/asm-mips/sibyte/sb1250_mc.h
···11/* *********************************************************************22 * SB1250 Board Support Package33- * 44- * Memory Controller constants File: sb1250_mc.h 55- * 33+ *44+ * Memory Controller constants File: sb1250_mc.h55+ *66 * This module contains constants and macros useful for77 * programming the memory controller.88- * 88+ *99 * SB1250 specification level: User's manual 1/02/021010- * 1010+ *1111 * Author: Mitch Lichtenberg1212- * 1313- ********************************************************************* 1212+ *1313+ *********************************************************************1414 *1515 * Copyright 2000,2001,2002,20031616 * Broadcom Corporation. All rights reserved.1717- * 1818- * This program is free software; you can redistribute it and/or 1919- * modify it under the terms of the GNU General Public License as 2020- * published by the Free Software Foundation; either version 2 of 1717+ *1818+ * This program is free software; you can redistribute it and/or1919+ * modify it under the terms of the GNU General Public License as2020+ * published by the Free Software Foundation; either version 2 of2121 * the License, or (at your option) any later version.2222 *2323 * This program is distributed in the hope that it will be useful,···2727 *2828 * You should have received a copy of the GNU General Public License2929 * along with this program; if not, write to the Free Software3030- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 3030+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,3131 * MA 02111-1307 USA3232 ********************************************************************* */3333···166166167167#define K_MC_REF_RATE_100MHz 0x62168168#define K_MC_REF_RATE_133MHz 0x81169169-#define K_MC_REF_RATE_200MHz 0xC4 169169+#define K_MC_REF_RATE_200MHz 0xC4170170171171#define V_MC_REF_RATE_100MHz V_MC_REF_RATE(K_MC_REF_RATE_100MHz)172172#define V_MC_REF_RATE_133MHz V_MC_REF_RATE(K_MC_REF_RATE_133MHz)···228228 V_MC_ADDR_DRIVE_DEFAULT | \229229 V_MC_DATA_DRIVE_DEFAULT | \230230 V_MC_CLOCK_DRIVE_DEFAULT | \231231- V_MC_REF_RATE_DEFAULT 231231+ V_MC_REF_RATE_DEFAULT232232233233234234
+34-34
include/asm-mips/sibyte/sb1250_regs.h
···11/* *********************************************************************22 * SB1250 Board Support Package33- * 33+ *44 * Register Definitions File: sb1250_regs.h55- * 55+ *66 * This module contains the addresses of the on-chip peripherals77 * on the SB1250.88- * 88+ *99 * SB1250 specification level: 01/02/20021010- * 1010+ *1111 * Author: Mitch Lichtenberg1212- * 1313- ********************************************************************* 1212+ *1313+ *********************************************************************1414 *1515 * Copyright 2000,2001,2002,20031616 * Broadcom Corporation. All rights reserved.1717- * 1818- * This program is free software; you can redistribute it and/or 1919- * modify it under the terms of the GNU General Public License as 2020- * published by the Free Software Foundation; either version 2 of 1717+ *1818+ * This program is free software; you can redistribute it and/or1919+ * modify it under the terms of the GNU General Public License as2020+ * published by the Free Software Foundation; either version 2 of2121 * the License, or (at your option) any later version.2222 *2323 * This program is distributed in the hope that it will be useful,···2727 *2828 * You should have received a copy of the GNU General Public License2929 * along with this program; if not, write to the Free Software3030- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 3030+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,3131 * MA 02111-1307 USA3232 ********************************************************************* */3333···40404141/* *********************************************************************4242 * Some general notes:4343- * 4343+ *4444 * For the most part, when there is more than one peripheral4545 * of the same type on the SOC, the constants below will be4646 * offsets from the base of each peripheral. For example,4747 * the MAC registers are described as offsets from the first4848 * MAC register, and there will be a MAC_REGISTER() macro4949- * to calculate the base address of a given MAC. 5050- * 4949+ * to calculate the base address of a given MAC.5050+ *5151 * The information in this file is based on the SB1250 SOC5252 * manual version 0.2, July 2000.5353 ********************************************************************* */545455555656-/* ********************************************************************* 5656+/* *********************************************************************5757 * Memory Controller Registers5858 ********************************************************************* */5959···101101#define R_MC_TEST_ECC 0x0000000420102102#define R_MC_MCLK_CFG 0x0000000500103103104104-/* ********************************************************************* 104104+/* *********************************************************************105105 * L2 Cache Control Registers106106 ********************************************************************* */107107···126126#define A_L2_EEC_ADDRESS A_L2_ECC_TAG127127128128129129-/* ********************************************************************* 129129+/* *********************************************************************130130 * PCI Interface Registers131131 ********************************************************************* */132132···134134#define A_PCI_TYPE01_HEADER 0x00DE000800135135136136137137-/* ********************************************************************* 137137+/* *********************************************************************138138 * Ethernet DMA and MACs139139 ********************************************************************* */140140···184184 (R_MAC_DMA_CHANNEL_BASE(txrx,chan) + \185185 (reg))186186187187-/* 187187+/*188188 * DMA channel registers, relative to A_MAC_DMA_CHANNEL_BASE189189 */190190···259259#define MAC_CHMAP_COUNT 4260260261261262262-/* ********************************************************************* 262262+/* *********************************************************************263263 * DUART Registers264264 ********************************************************************* */265265···363363#endif /* 1250 PASS2 || 112x PASS1 */364364365365366366-/* ********************************************************************* 366366+/* *********************************************************************367367 * Synchronous Serial Registers368368 ********************************************************************* */369369···397397 (reg))398398399399400400-/* 400400+/*401401 * DMA channel registers, relative to A_SER_DMA_CHANNEL_BASE402402 */403403···457457#define R_SER_RMON_RX_ERRORS 0x000001F0458458#define R_SER_RMON_RX_BADADDR 0x000001F8459459460460-/* ********************************************************************* 460460+/* *********************************************************************461461 * Generic Bus Registers462462 ********************************************************************* */463463···513513#define R_IO_PCMCIA_CFG 0x0A60514514#define R_IO_PCMCIA_STATUS 0x0A70515515516516-/* ********************************************************************* 516516+/* *********************************************************************517517 * GPIO Registers518518 ********************************************************************* */519519···537537#define R_GPIO_PIN_CLR 0x30538538#define R_GPIO_PIN_SET 0x38539539540540-/* ********************************************************************* 540540+/* *********************************************************************541541 * SMBus Registers542542 ********************************************************************* */543543···573573#define R_SMB_CONTROL 0x0000000060574574#define R_SMB_PEC 0x0000000070575575576576-/* ********************************************************************* 576576+/* *********************************************************************577577 * Timer Registers578578 ********************************************************************* */579579···641641#endif /* 1250 PASS2 || 112x PASS1 */642642643643644644-/* ********************************************************************* 644644+/* *********************************************************************645645 * System Control Registers646646 ********************************************************************* */647647···649649#define A_SCD_SYSTEM_CFG 0x0010020008650650#define A_SCD_SYSTEM_MANUF 0x0010038000651651652652-/* ********************************************************************* 652652+/* *********************************************************************653653 * System Address Trap Registers654654 ********************************************************************* */655655···672672#endif /* 1250 PASS2 || 112x PASS1 */673673674674675675-/* ********************************************************************* 675675+/* *********************************************************************676676 * System Interrupt Mapper Registers677677 ********************************************************************* */678678···701701#define R_IMR_INTERRUPT_MAP_BASE 0x0200702702#define R_IMR_INTERRUPT_MAP_COUNT 64703703704704-/* ********************************************************************* 704704+/* *********************************************************************705705 * System Performance Counter Registers706706 ********************************************************************* */707707···711711#define A_SCD_PERF_CNT_2 0x00100204E0712712#define A_SCD_PERF_CNT_3 0x00100204E8713713714714-/* ********************************************************************* 714714+/* *********************************************************************715715 * System Bus Watcher Registers716716 ********************************************************************* */717717···726726#define A_BUS_L2_ERRORS 0x00100208C0727727#define A_BUS_MEM_IO_ERRORS 0x00100208C8728728729729-/* ********************************************************************* 729729+/* *********************************************************************730730 * System Debug Controller Registers731731 ********************************************************************* */732732733733#define A_SCD_JTAG_BASE 0x0010000000734734735735-/* ********************************************************************* 735735+/* *********************************************************************736736 * System Trace Buffer Registers737737 ********************************************************************* */738738···755755#define A_SCD_TRACE_SEQUENCE_6 0x0010020A90756756#define A_SCD_TRACE_SEQUENCE_7 0x0010020A98757757758758-/* ********************************************************************* 758758+/* *********************************************************************759759 * System Generic DMA Registers760760 ********************************************************************* */761761
+18-18
include/asm-mips/sibyte/sb1250_scd.h
···11/* *********************************************************************22 * SB1250 Board Support Package33- * 33+ *44 * SCD Constants and Macros File: sb1250_scd.h55- * 55+ *66 * This module contains constants and macros useful for77 * manipulating the System Control and Debug module on the 1250.88- * 88+ *99 * SB1250 specification level: User's manual 1/02/021010- * 1010+ *1111 * Author: Mitch Lichtenberg1212- * 1313- ********************************************************************* 1212+ *1313+ *********************************************************************1414 *1515 * Copyright 2000,2001,2002,20031616 * Broadcom Corporation. All rights reserved.1717- * 1818- * This program is free software; you can redistribute it and/or 1919- * modify it under the terms of the GNU General Public License as 2020- * published by the Free Software Foundation; either version 2 of 1717+ *1818+ * This program is free software; you can redistribute it and/or1919+ * modify it under the terms of the GNU General Public License as2020+ * published by the Free Software Foundation; either version 2 of2121 * the License, or (at your option) any later version.2222 *2323 * This program is distributed in the hope that it will be useful,···2727 *2828 * You should have received a copy of the GNU General Public License2929 * along with this program; if not, write to the Free Software3030- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 3030+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,3131 * MA 02111-1307 USA3232 ********************************************************************* */3333···130130/* System Manufacturing Register131131* Register: SCD_SYSTEM_MANUF132132*/133133-133133+134134/* Wafer ID: bits 31:0 */135135#define S_SYS_WAFERID1_200 _SB_MAKE64(0)136136#define M_SYS_WAFERID1_200 _SB_MAKEMASK(32,S_SYS_WAFERID1_200)137137#define V_SYS_WAFERID1_200(x) _SB_MAKEVALUE(x,S_SYS_WAFERID1_200)138138#define G_SYS_WAFERID1_200(x) _SB_GETVALUE(x,S_SYS_WAFERID1_200,M_SYS_WAFERID1_200)139139-139139+140140#define S_SYS_BIN _SB_MAKE64(32)141141#define M_SYS_BIN _SB_MAKEMASK(4,S_SYS_BIN)142142#define V_SYS_BIN _SB_MAKEVALUE(x,S_SYS_BIN)143143#define G_SYS_BIN _SB_GETVALUE(x,S_SYS_BIN,M_SYS_BIN)144144-144144+145145/* Wafer ID: bits 39:36 */146146#define S_SYS_WAFERID2_200 _SB_MAKE64(36)147147#define M_SYS_WAFERID2_200 _SB_MAKEMASK(4,S_SYS_WAFERID2_200)148148#define V_SYS_WAFERID2_200(x) _SB_MAKEVALUE(x,S_SYS_WAFERID2_200)149149#define G_SYS_WAFERID2_200(x) _SB_GETVALUE(x,S_SYS_WAFERID2_200,M_SYS_WAFERID2_200)150150-150150+151151/* Wafer ID: bits 39:0 */152152#define S_SYS_WAFERID_300 _SB_MAKE64(0)153153#define M_SYS_WAFERID_300 _SB_MAKEMASK(40,S_SYS_WAFERID_300)154154#define V_SYS_WAFERID_300(x) _SB_MAKEVALUE(x,S_SYS_WAFERID_300)155155#define G_SYS_WAFERID_300(x) _SB_GETVALUE(x,S_SYS_WAFERID_300,M_SYS_WAFERID_300)156156-156156+157157#define S_SYS_XPOS _SB_MAKE64(40)158158#define M_SYS_XPOS _SB_MAKEMASK(6,S_SYS_XPOS)159159#define V_SYS_XPOS(x) _SB_MAKEVALUE(x,S_SYS_XPOS)160160#define G_SYS_XPOS(x) _SB_GETVALUE(x,S_SYS_XPOS,M_SYS_XPOS)161161-161161+162162#define S_SYS_YPOS _SB_MAKE64(46)163163#define M_SYS_YPOS _SB_MAKEMASK(6,S_SYS_YPOS)164164#define V_SYS_YPOS(x) _SB_MAKEVALUE(x,S_SYS_YPOS)165165#define G_SYS_YPOS(x) _SB_GETVALUE(x,S_SYS_YPOS,M_SYS_YPOS)166166-166166+167167/*168168 * System Config Register (Table 4-2)169169 * Register: SCD_SYSTEM_CFG
+12-12
include/asm-mips/sibyte/sb1250_smbus.h
···11/* *********************************************************************22 * SB1250 Board Support Package33- * 33+ *44 * SMBUS Constants File: sb1250_smbus.h55- * 66- * This module contains constants and macros useful for 55+ *66+ * This module contains constants and macros useful for77 * manipulating the SB1250's SMbus devices.88- * 88+ *99 * SB1250 specification level: 01/02/20021010- * 1010+ *1111 * Author: Mitch Lichtenberg1212- * 1313- ********************************************************************* 1212+ *1313+ *********************************************************************1414 *1515 * Copyright 2000,2001,2002,20031616 * Broadcom Corporation. All rights reserved.1717- * 1818- * This program is free software; you can redistribute it and/or 1919- * modify it under the terms of the GNU General Public License as 2020- * published by the Free Software Foundation; either version 2 of 1717+ *1818+ * This program is free software; you can redistribute it and/or1919+ * modify it under the terms of the GNU General Public License as2020+ * published by the Free Software Foundation; either version 2 of2121 * the License, or (at your option) any later version.2222 *2323 * This program is distributed in the hope that it will be useful,···2727 *2828 * You should have received a copy of the GNU General Public License2929 * along with this program; if not, write to the Free Software3030- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 3030+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,3131 * MA 02111-1307 USA3232 ********************************************************************* */3333
+6-6
include/asm-mips/sibyte/sb1250_syncser.h
···77 * manipulating the SB1250's Synchronous Serial88 *99 * SB1250 specification level: User's manual 1/02/021010- * 1010+ *1111 * Author: Mitch Lichtenberg1212 *1313 *********************************************************************1414 *1515 * Copyright 2000,2001,2002,20031616 * Broadcom Corporation. All rights reserved.1717- * 1818- * This program is free software; you can redistribute it and/or 1919- * modify it under the terms of the GNU General Public License as 2020- * published by the Free Software Foundation; either version 2 of 1717+ *1818+ * This program is free software; you can redistribute it and/or1919+ * modify it under the terms of the GNU General Public License as2020+ * published by the Free Software Foundation; either version 2 of2121 * the License, or (at your option) any later version.2222 *2323 * This program is distributed in the hope that it will be useful,···2727 *2828 * You should have received a copy of the GNU General Public License2929 * along with this program; if not, write to the Free Software3030- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 3030+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,3131 * MA 02111-1307 USA3232 ********************************************************************* */3333
+15-15
include/asm-mips/sibyte/sb1250_uart.h
···11/* *********************************************************************22 * SB1250 Board Support Package33- * 33+ *44 * UART Constants File: sb1250_uart.h55- * 66- * This module contains constants and macros useful for 55+ *66+ * This module contains constants and macros useful for77 * manipulating the SB1250's UARTs88 *99 * SB1250 specification level: User's manual 1/02/021010- * 1010+ *1111 * Author: Mitch Lichtenberg1212- * 1313- ********************************************************************* 1212+ *1313+ *********************************************************************1414 *1515 * Copyright 2000,2001,2002,20031616 * Broadcom Corporation. All rights reserved.1717- * 1818- * This program is free software; you can redistribute it and/or 1919- * modify it under the terms of the GNU General Public License as 2020- * published by the Free Software Foundation; either version 2 of 1717+ *1818+ * This program is free software; you can redistribute it and/or1919+ * modify it under the terms of the GNU General Public License as2020+ * published by the Free Software Foundation; either version 2 of2121 * the License, or (at your option) any later version.2222 *2323 * This program is distributed in the hope that it will be useful,···2727 *2828 * You should have received a copy of the GNU General Public License2929 * along with this program; if not, write to the Free Software3030- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 3030+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,3131 * MA 02111-1307 USA3232 ********************************************************************* */3333···37373838#include "sb1250_defs.h"39394040-/* ********************************************************************** 4040+/* **********************************************************************4141 * DUART Registers4242 ********************************************************************** */4343···145145#define V_DUART_MISC_CMD_START_BREAK V_DUART_MISC_CMD(K_DUART_MISC_CMD_START_BREAK)146146#define V_DUART_MISC_CMD_STOP_BREAK V_DUART_MISC_CMD(K_DUART_MISC_CMD_STOP_BREAK)147147148148-#define M_DUART_CMD_RESERVED _SB_MAKEMASK1(7) 148148+#define M_DUART_CMD_RESERVED _SB_MAKEMASK1(7)149149150150/*151151 * DUART Status Register (Table 10-6)···165165166166/*167167 * DUART Baud Rate Register (Table 10-7)168168- * Register: DUART_CLK_SEL_A 168168+ * Register: DUART_CLK_SEL_A169169 * Register: DUART_CLK_SEL_B170170 */171171···332332 (chan == 0 ? M_DUART_OUT_PIN_CLR0 : M_DUART_OUT_PIN_CLR1)333333334334#if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1)335335-/* 335335+/*336336 * Full Interrupt Control Register337337 */338338
···8282 * @SOCK_STREAM - stream (connection) socket8383 * @SOCK_RAW - raw socket8484 * @SOCK_RDM - reliably-delivered message8585- * @SOCK_SEQPACKET - sequential packet socket 8585+ * @SOCK_SEQPACKET - sequential packet socket8686 * @SOCK_PACKET - linux specific way of getting packets at the dev level.8787 * For writing rarp and other similar things on the user level.8888 */
+1-1
include/asm-mips/statfs.h
···5757};58585959#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */6060-6060+6161#if _MIPS_SIM == _MIPS_SIM_ABI6462626363struct statfs64 { /* Same as struct statfs */
···2121 * along with this program; if not, write to the Free Software2222 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA2323 */2424-#ifndef __NEC_VRC4173_H 2525-#define __NEC_VRC4173_H 2424+#ifndef __NEC_VRC4173_H2525+#define __NEC_VRC4173_H26262727#include <linux/config.h>2828#include <asm/io.h>
+2-2
include/asm-mips/war.h
···113113 */114114#define BCM1250_M3_WAR 1115115116116-/* 116116+/*117117 * This is a DUART workaround related to glitches around register accesses118118 */119119#define SIBYTE_1956_WAR 1···122122123123/*124124 * Fill buffers not flushed on CACHE instructions125125- * 125125+ *126126 * Hit_Invalidate_I cacheops invalidate an icache line but the refill127127 * for that line can get stale data from the fill buffer instead of128128 * accessing memory if the previous icache miss was also to that line.