Commit Graph

402 Commits

Author SHA1 Message Date
tsutsui 21d08156dc Change range of PCI I/O space for pci_configure_bus(9)
so that viaide(4) works with PCI fixup (not enabled yet).
2006-05-20 03:38:03 +00:00
tsutsui 7ac8789a63 Use cobalt_id to probe com at mainbus. 2006-05-19 19:33:56 +00:00
tsutsui 373ffecde6 Add bus_space_*_stream_N() macros, which are identical with non-stream ops. 2006-05-18 15:37:05 +00:00
tsutsui 68617d79ff Enable options MIIVERBOSE. 2006-05-18 14:45:28 +00:00
tsutsui d6eeae4a4e Add definitions for the PCI timeout and retry register. 2006-05-17 17:31:55 +00:00
tsutsui 52677b4154 Add ral at pci, and enable pseudo-device pppoe.
Tested and reported by Markus W Kilbinger on port-cobalt.
2006-05-16 13:33:53 +00:00
tsutsui df99509f85 According to src/gnu/dist/binutils/gas/config/tc-mips.c
and src/gnu/dist/gcc/gcc/config/mips/mips.c,
CPUFLAGS="-mips2 -mtune=vr5000" is enough even for Rm523x CPUs.
2006-05-15 12:17:11 +00:00
elad 8ccb6c9341 integrate kauth. 2006-05-14 21:55:09 +00:00
tsutsui d90fe882d9 Specify CPUFLAGS for Rm523x:
> makeoptions	CPUFLAGS="-mips2 -Wa,-mips2 -Wa,-mtune=rm5230"

before:
5693.654u 1059.921s 1:52:29.76 100.0%   0+0k 310+8815io 2493pf+0w

after:
5680.013u 983.282s 1:51:00.49 100.0%    0+0k 311+9015io 2494pf+0w
2006-05-14 14:27:14 +00:00
tsutsui 3eb8ea4219 Pull slightly optimized BUS_DMASYNC_PREREAD op from other mips3 ports. 2006-05-14 05:53:42 +00:00
tsutsui be8fa802b7 Explicitly mask timer0 interrupt until cpu_initclocks(9). 2006-04-21 19:04:57 +00:00
tsutsui d1f9bbe0d6 Fix an include path. 2006-04-21 18:21:30 +00:00
tsutsui 10918e2c75 Account interrupts by evcnt(9). 2006-04-21 18:17:45 +00:00
tsutsui f35c65dfaa Handle interrupts in priority order. 2006-04-21 17:55:27 +00:00
tsutsui 39c93ac321 Oops, fix botch in previous. 2006-04-21 17:16:17 +00:00
tsutsui fb8457daf7 Return if interrupt is handled in icu_intr(). 2006-04-21 17:14:08 +00:00
tsutsui 8187a233b2 Make a local variable static. 2006-04-21 17:04:26 +00:00
tsutsui 661d2895e2 - initialize cpuspeed and curcpu() according to cobalt model id
- switch to cpu cyclecounter based delay(9), taken from evbmips
2006-04-21 16:52:15 +00:00
tsutsui bf95794e71 - add prefix ih_ to cookie_type member in struct cobalt_intrhand
- clear the cookie type in disestablish functions
- some cosmetics
2006-04-21 16:27:33 +00:00
tsutsui f07646e1ff - remove "extern" from function declarations
- remove unused intrcnt[] declaration
2006-04-21 16:08:51 +00:00
tsutsui 205083b135 - replace magic numbers with a dumb macro
- fix typo
2006-04-21 15:46:07 +00:00
tsutsui e2f83bd318 Check more invalid devices in pci_conf_hook(9). 2006-04-18 12:26:45 +00:00
tsutsui 35a607184b Mising -> Mixing 2006-04-16 16:39:36 +00:00
tsutsui c1842c746c _ds_vaddr member in struct cobalt_bus_dma_segment is a virtual address,
so it should be vaddr_t rather than bus_addr_t.
2006-04-16 08:10:09 +00:00
tsutsui f66776b16a Pass mips_dcache_align to pci_configure_bus(9) for cacheline_size. 2006-04-16 05:09:58 +00:00
tsutsui 4e1d380fcb Switch cobalt port to use MI todr(9) functions and MI mc146818 driver.
Tested on RaQ2 and Qube2 on port-cobalt.
2006-04-15 13:33:04 +00:00
tsutsui 5423553a08 u_int32_t -> uint32_t 2006-04-15 13:26:03 +00:00
tsutsui 6abe9ac90a u_intNN_t -> uintNN_t 2006-04-15 11:33:33 +00:00
tsutsui 7309391544 Identify cobalt models at boot and store it to a variable cobalt_id.
Tested on and Qube2 by several people on port-cobalt and my RaQ2.
2006-04-15 11:28:52 +00:00
tsutsui 106e914ccd Replace some magic numbers with macro. 2006-04-09 01:24:05 +00:00
tsutsui 1fc83a9af6 Remove declaration for cpu_model[] since it's in <sys/systm.h>. 2006-04-09 01:20:06 +00:00
tsutsui ce53cc60f2 Enable some more options and devices:
http://mail-index.netbsd.org/port-cobalt/2006/04/06/0000.html

Tested by several people on port-cobalt.
2006-04-08 12:41:11 +00:00
tsutsui 98544ead5e Add include "dev/usb/files.usb". 2006-04-07 18:55:58 +00:00
tsutsui bc4a0707e8 Use bus_space_map(9) to get bus_space_handle_t on each driver
and remove bogus bus_space_handle_t member from mainbus_attach_args.
2006-04-06 11:50:19 +00:00
tsutsui f8b2282138 ANSIfy, KNF 2006-04-05 15:50:48 +00:00
tsutsui d8a85de05c ANSIfy. 2006-04-05 15:46:58 +00:00
tsutsui 7011c71999 - ANSIfy
- KNF
- u_intNN_t -> uintNN_t
- include "ioconf.h" for struct cfdriver panel_cd
2006-04-05 15:14:49 +00:00
tsutsui 194935a114 ANSIfy, KNF 2006-04-05 15:14:10 +00:00
tsutsui a7c19b0c1a Include "ioconf.h" for struct cfdriver cpu_cd (though it's currently unused). 2006-04-05 15:07:17 +00:00
tsutsui da447cc3ab - ANSIfy
- KNF
- u_intXX_t -> uintXX_t
2006-04-05 15:03:27 +00:00
tsutsui 076b3a81c7 Fix function name in panic messages. 2006-04-05 14:03:04 +00:00
yamt ec5a93183a merge yamt-uio_vmspace branch.
- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.
2006-03-01 12:38:10 +00:00
thorpej a1050c527b Use device_is_a(). 2006-02-25 17:32:43 +00:00
thorpej 58853410ae Use device_class() instead of accessing dv_class directly. 2006-02-21 04:32:38 +00:00
perry fbae48b901 Change "inline" back to "__inline" in .h files -- C99 is still too
new, and some apps compile things in C89 mode. C89 keywords stay.

As per core@.
2006-02-16 20:17:12 +00:00
gdamore 8430838831 PCI_NETBSD_CONFIGURE should allocate (but not map) address space expansion
ROMS by default.   Full discussion at
http://mail-index.netbsd.org/tech-kern/2005/12/16/0023.html
Closes PR kern/32467
Reviewed by briggs@
2006-02-10 20:52:56 +00:00
cube 6ff13154dd Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
2006-02-05 05:01:48 +00:00
rpaulo df5390003c bpfilter doesn't accept count anymore. 2006-02-04 02:42:27 +00:00
reinoud a92fdbbc53 Add commented out UDF file-system entry in all GENERIC configurations. 2006-02-02 21:32:08 +00:00
christos 606bb2caed free -> dealloc
unsigned -> size_t for alloc/dealloc
2006-01-25 18:28:25 +00:00