simonb
f645983fc7
Switch from intrcnt interrupt account to event counters.
2005-01-11 08:05:13 +00:00
kleink
7b3b647647
Factor out W{CHAR,INT}_{MAX,MIN} into their own header file.
2004-05-08 21:51:47 +00:00
drochner
cf8b697c65
remove license clauses 3 and 4 from my cpoyright notices
2004-03-24 17:06:57 +00:00
ad
9aa9b8ebf5
Add drivers for the desktop bus, DC-7085 and pm display. Make it possible to
...
select between rcons or wscons at compile time. Ok'ed by simonb.
2003-12-13 23:04:37 +00:00
agc
aad01611e7
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
fvdl
7dd7f8baa2
Handle 64bit DMA addresses on PCI for platforms that can (currently only
...
enabled on amd64). Add a dmat64 field to various PCI attach structures,
and pass it down where needed. Implement a simple new function called
pci_dma64_available(pa) to test if 64bit DMA addresses may be used.
This returns 1 iff _PCI_HAVE_DMA64 is defined in <machine/pci_machdep.h>,
and there is more than 4G of memory.
2003-06-15 23:08:53 +00:00
tsutsui
972f964a71
Switch to use mips/softintr.c for softintr(9).
2003-05-25 14:04:45 +00:00
simonb
0a30e5fb17
Fix a grammatical nit.
2003-03-22 14:26:41 +00:00
nakayama
e3e4805068
Replace machine/rnd.h with more appropriate name to share it
...
with cycle counter based microtime in kern/kern_microtime.c.
2003-02-05 13:57:50 +00:00
kent
cd7d9faeaf
Introduce BUS_DMA_NOCACHE, and bus_dmamem_map() of i386 supports it.
2003-01-28 01:07:51 +00:00
thorpej
71b2230367
Merge the nathanw_sa branch.
2003-01-18 06:05:42 +00:00
lukem
0635de35a3
Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more.
2002-11-26 23:30:07 +00:00
gehenna
77a6b82b27
Merge the gehenna-devsw branch into the trunk.
...
This merge changes the device switch tables from static array to
dynamically generated by config(8).
- All device switches is defined as a constant structure in device drivers.
- The new grammer ``device-major'' is introduced to ``files''.
device-major <prefix> char <num> [block <num>] [<rules>]
- All device major numbers must be listed up in port dependent majors.<arch>
by using this grammer.
- Added the new naming convention.
The name of the device switch must be <prefix>_[bc]devsw for auto-generation
of device switch tables.
- The backward compatibility of loading block/character device
switch by LKM framework is broken. This is necessary to convert
from block/character device major to device name in runtime and vice versa.
- The restriction to assign device major by LKM is completely removed.
We don't need to reserve LKM entries for dynamic loading of device switch.
- In compile time, device major numbers list is packed into the kernel and
the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
briggs
0b956d0b8b
Implement pmc(9) -- An interface to hardware performance monitoring
...
counters. These counters do not exist on all CPUs, but where they
do exist, can be used for counting events such as dcache misses that
would otherwise be difficult or impossible to instrument by code
inspection or hardware simulation.
pmc(9) is meant to be a general interface. Initially, the Intel XScale
counters are the only ones supported.
2002-08-07 05:14:47 +00:00
simonb
fef76c7e26
Use a __HAVE_BOOTINFO_H define to check for bootinfo support instead of
...
speading port names in arch-dependant code.
2002-08-05 02:13:14 +00:00
simonb
d7a3af7811
ANSIfy.
2002-06-05 06:19:29 +00:00
simonb
a85e214bda
Make sure that private DMA flags don't overlap with standard DMA flags;
...
start these at 0x10000 to leave room for an increase in the latter.
2002-03-17 21:45:06 +00:00
simonb
fd77e40b6b
Provide a L2 cache configuration function.
2002-03-05 16:12:35 +00:00
simonb
4324f37586
Use "#define<tab>".
2002-02-28 03:17:23 +00:00
christos
6b030ee036
- define other DEV_ constants that the local port uses.
...
- delete cdev_decl(mm) since <sys/conf.h> does it.
2002-02-27 01:19:03 +00:00
simonb
d9ab16ba2f
Purge CLSIZE, CLSIZELOG2 and MCLOFSET.
...
Be consistant in the way that MSIZE, MCLSHIFT, MCLBYTES and NMBCLUSTERS
are defined.
Remove old VM constants from cesfic port.
Bump MSIZE to 256 on mipsco (the only one that wasn't already 256).
2002-02-26 15:13:19 +00:00
gmcgarry
b35b20d732
Remove clock_machdep.h.
2001-11-30 06:30:52 +00:00
simonb
1b1e4bd3d1
Remove hardcoded values for HZ (under different names!) from mcclock.c
...
and clock_machdep.h, so that now HZ can be any supported frequency of
the mc146818a/ds1287a RTCs.
Tested at 256Hz and 2048Hz.
2001-11-23 01:04:11 +00:00
thorpej
af66038f73
Merge the thorpej-mips-cache branch onto the trunk. This is an
...
overhaul of how caches are handled for NetBSD's MIPS ports.
2001-11-14 18:15:10 +00:00
thorpej
e727e3f180
Split elf32 vs. elf64 handling in loadfile(), including support for
...
each separately and explicitly. BOOT_ELF is now BOOT_ELF32 and
BOOT_ELF64, and ELFSIZE should no longer be defined in loadfile_machdep.h.
2001-10-31 17:20:45 +00:00
thorpej
93c794a94b
Remove pmax-specific fbio.h -- everything uses <dev/sun/fbio.h> now.
2001-09-19 18:51:03 +00:00
simonb
a41b7a380e
Clean up and standardise across MIPS ports.
2001-09-09 04:20:25 +00:00
simonb
c91e08563f
Clean up.
2001-09-04 06:26:18 +00:00
simonb
62fb390c64
May as well include <mips/cpuregs.h> in <mips/cpu.h> once rather than
...
in every MIPS port's <machine/cpu.h>.
2001-09-04 06:23:15 +00:00
simonb
214f5366ea
Centralise struct cpu_info declaration and related info to <mips/cpu.h>.
2001-09-04 06:19:21 +00:00
simonb
a6b8c86af0
Remove an unneeded comment; ``sync'' with other "just include <mips/foo.h>"
...
files.
2001-08-31 03:53:22 +00:00
simonb
4ac4da1c52
G/C the unused kernel-only CLK_TCK #define.
...
XXX: does include/time.h still need <machine/limits.h>?
2001-08-31 03:46:03 +00:00
nisimura
df657b5158
Count and record memory error interrupts with evcnt(9).
2001-08-27 02:00:16 +00:00
simonb
cddf6cf55b
Switch to MI SCSI and drop old pmax MD SCSI support completely.
2001-08-26 11:47:18 +00:00
mhitch
20039b1dd8
Use the PROM bitmap, if available, to determine available memory. Also
...
add support of multiple memory segments so machines that allow mixed
memory sizes can utilize all available memory.
2001-08-24 15:33:16 +00:00
nisimura
9fac675c1e
Forgot to commit changes of intrcnt[] array and its indices.
2001-08-22 08:23:09 +00:00
nisimura
d3320a155b
NetBSD/pmax now has GENERIC_SOFT_INTERRUPTS.
2001-08-22 06:59:38 +00:00
mhitch
1dcdcbf286
The memmap structure contains the memory bitmap returned by the PROM
...
getbitmap() call.
2001-07-30 17:05:51 +00:00
thorpej
babefc5331
Add BUS_DMA_READ and BUS_DMA_WRITE flags, that hint the back-end
...
at dmamap load time that the mapping will be used for a unidirectional
transfer of the specified direction.
2001-07-19 15:32:10 +00:00
mrg
67afbd6270
use _KERNEL_OPT
2001-05-30 11:57:16 +00:00
kleink
f06533a1ee
Add definitions of C99 integer format conversion macros.
...
XXX Fastest minimum-width integer types haven't been decided upon yet.
2001-04-15 17:13:04 +00:00
kleink
739cb75837
Add definitions of C99 specified-width integer type limits.
...
XXX Fastest minimum-width integer types haven't been decided upon yet.
2001-04-15 15:29:02 +00:00
kleink
cdcf9f46c5
Add definitions of C99 integer constant macros.
...
Tidy Makefiles up a little.
2001-04-14 22:46:19 +00:00
kleink
a7c20e5788
Add definitions of C99 integer constant macros.
2001-04-14 22:38:33 +00:00
kleink
7affdab52e
Add definitions of C99 minimum-width and greatest-width integer types.
...
XXX Fastest minimum-width integer types haven't been decided upon yet.
2001-04-14 12:19:49 +00:00
thorpej
bf2dcec4f5
Remove the use of splimp() from the NetBSD kernel. splnet()
...
and only splnet() is allowed for the protection of data structures
used by network devices.
2001-04-13 23:29:55 +00:00
thorpej
316dcc474b
splvec.splimp -> splvec.splvm
2001-04-12 19:21:20 +00:00
thorpej
2c4c690f14
Add the BUS_DMA_STREAMING flag.
2001-03-07 22:42:16 +00:00
thorpej
d85a75f583
Make sure everybody has an splvm() and equate it with splimp() (splimp()
...
is the historical name for this interrupt level, and the historical name
is going to go away in the near future).
2001-01-14 02:00:37 +00:00
simonb
a8a26dd42a
Remove __BROKEN_CONFIG_UNIT_USAGE, not needed on pmax.
2000-12-03 23:00:42 +00:00