augustss
3a6e3a4670
Add (sometimes commented out) MIIVERBOSE option.
2000-05-08 13:49:44 +00:00
mycroft
a7fb64072e
Fix the RCS tag format. Duh.
2000-05-08 03:11:06 +00:00
mycroft
f8e0411615
Make the audioamd assembler code compile again.
2000-05-08 03:09:54 +00:00
mycroft
f5bd37be57
Make the SPARC audioamd driver at least *compile*. Well, the C code, that is.
...
*sigh*
2000-05-08 02:44:31 +00:00
hannken
0b2854eb6c
Fix for lint during build of libc.
2000-05-05 20:12:00 +00:00
augustss
e991ee6035
Use correct file name for amd7930.
2000-05-05 14:19:25 +00:00
pk
f622dc8618
Define some more bits in the MXCC control register.
2000-05-05 11:07:15 +00:00
pk
c49e7076d3
Simplify pmap_page_protect(); modelled after a similar change by
...
Art Grabowski in Openbsd.
2000-05-02 13:06:27 +00:00
pk
d46e0d77c0
Remove unused code: getptesw4m(),setptesw4m()
2000-05-02 10:35:06 +00:00
augustss
361f2141f7
Adapt to new am7930 driver. PR 10033 from Gregory McGarry.
2000-05-02 06:35:12 +00:00
thorpej
855b79db92
Let each platform typedef the new __cpu_simple_lock_t, which should
...
be the most efficient type used for the atomic operations in the
simplelock structure, and should also be __volatile.
2000-05-02 04:41:04 +00:00
pk
91ec70f36d
- De-inline VA2PA(); it isn't in any time-critical path. Saves a bunch of space.
...
- Disable special-cased viking cache flushing in setpgt4m(). This work-around
should no longer be necessary.
- Remove some misc. dead code.
2000-05-01 15:19:46 +00:00
pk
d4ac7f24ca
Implement HyperSPARC specific pmap_{zero,copy}_page functions.
2000-05-01 14:06:41 +00:00
pk
784c538c3f
Add definitions of HyperSPARC block fill/copy ASIs.
2000-05-01 14:05:53 +00:00
pk
e327115496
FIx declaration in __ldstub.
2000-04-30 22:15:30 +00:00
pk
6832a2d6c9
Arrange to call uvm_pageidlezero() from idle loop.
2000-04-30 21:32:44 +00:00
pk
88fc960805
Define offset for uvm.page_idle_zero.
2000-04-30 21:29:16 +00:00
pk
1b8cac1bd9
Implement MXCC versions for pmap_{zero,copy}_page().
2000-04-30 21:22:28 +00:00
pk
78391926bf
Allow for CPU specific page clear and page copy functions.
2000-04-30 21:09:43 +00:00
pk
99ef6f17b5
Remove not-so-useful `#if DEBUG' code.
2000-04-30 14:23:29 +00:00
pk
3c5ac0b689
Rename MXCC control register.
2000-04-30 14:19:37 +00:00
pk
7373241c4c
Rename MXCC control register.
...
Add MXCC stream register definitions.
2000-04-30 14:18:52 +00:00
thorpej
dc8f3d3b3f
Oops, install <machine/lock.h> on these systems, too.
2000-04-29 03:45:42 +00:00
thorpej
f51470a514
Require that each each MACHINE/MACHINE_ARCH supply a lock.h. This file
...
contains the values __SIMPLELOCK_LOCKED and __SIMPLELOCK_UNLOCKED, which
replace the old SIMPLELOCK_LOCKED and SIMPLELOCK_UNLOCKED. These files
are also required to supply inline functions __cpu_simple_lock(),
__cpu_simple_lock_try(), and __cpu_simple_unlock() if locking is to be
supported on that platform (i.e. if MULTIPROCESSOR is defined in the
_KERNEL case). Change these functions to take an int * (&alp->lock_data)
rather than the struct simplelock * itself.
These changes make it possible for userland to use the locking primitives
by including <machine/lock.h>.
2000-04-29 03:31:45 +00:00
pk
43cdacc18b
ctx_alloc: set context before flushing a stolen context's cache
2000-04-20 13:59:02 +00:00
itojun
3be41bae18
add stf pseudo interface (commented out due to possible security risks)
2000-04-19 06:50:27 +00:00
pk
4665cccb20
Comment-out the RASTERCONSOLE_{BG,FG} color settings; they represent
...
the default initialization.
2000-04-17 21:48:23 +00:00
pk
a558005cec
When constructing `ri_devcmap[]', pack four instances of the LUTs in each
...
32 bit wide entry (as not documented in the non-existent rasops(9)..)
2000-04-17 20:37:28 +00:00
pk
d5a5871d3c
Make sure to reset the CPU context in ctx_free().
2000-04-17 20:32:00 +00:00
pk
470504f184
Use screen attributes passed to our hardware rasops routines.
...
Move colormap initialization to cg6reset(), so this is also done
on last close of the framebuffer device (e.g. after X server shutdown).
2000-04-16 22:17:03 +00:00
pk
a644297344
Initialize the rasops device colormap to match colormaps used by
...
our supported devices (including even coloured text on the console).
2000-04-16 22:12:05 +00:00
pk
065ce82243
Switch initial colormap setup again to be compatible with the PROM's,
...
i.e. background at index 0: white, foreground at index 255: black.
Also, allocate a slice for an ANSI colormap, so we can experiment
with coloured text on the bare console.
2000-04-16 22:07:24 +00:00
pk
8505eb6375
Slight optimization when searching the video parameter table.
2000-04-16 21:01:43 +00:00
pk
20c3689343
Initialize local variable `bt' in cgthree_attach().
2000-04-14 19:36:43 +00:00
pk
cd955cb171
dvma_init: avoid integer variable overflow
2000-04-14 14:14:47 +00:00
tsutsui
7865e586d3
Typo in comments. (Zilog 8350 -> 8530)
2000-04-14 13:29:57 +00:00
christos
44c22dc618
make this compile with -DDEBUG_SVR4 [wrong variable name]
2000-04-12 15:13:15 +00:00
chs
1f7a988bd2
unconditionalize "ifdef sparc".
2000-04-12 04:06:41 +00:00
chs
19de42337d
add rudimentary support for tracing stacks back into user space.
2000-04-10 01:22:09 +00:00
christos
0884c7e58f
Disable previous; it makes things worse.
2000-04-09 05:48:07 +00:00
christos
d1ea7c73a4
Try to emulate the svr4 setpsr trap. Needed by lwp.
2000-04-09 05:25:37 +00:00
thorpej
4044b5a41c
Use separate callouts for motor-on and motor-off. Fixes a condition
...
where the floppy driver would wedge because a motor-on timeout would
be cancelled by another I/O operation cancelling a motor-off timeout.
From enami tsugutomo <enami@sm.sony.co.jp>.
2000-04-07 16:58:53 +00:00
pk
99dbc425e9
Use copyin/copyout to get a colormap from/to user space.
...
Also, prepare for the case of a colormap maintained in kernel space.
2000-04-04 21:47:17 +00:00
thorpej
d11a9a62e2
Fix fallout from callout.
2000-04-04 17:20:54 +00:00
minoura
78b105698a
Move dl* function definitions to libc on ELF.
...
Based on the patch supplied by Takuya Shiozaki <tshiozak@astec.co.jp>.
See http://mail-index.netbsd.org/tech-userlevel/2000/02/23/0000.html .
2000-04-02 15:35:47 +00:00
pk
b6a73eb3a1
Make this compile without RASTERCONSOLE too.
2000-03-31 12:58:54 +00:00
pk
a41d265271
Add hardware acceleration features for use with the RASTERCONSOLE option.
...
Code posted on port-sparc by `der Mouse'; it was slightly re-arranged to
fit the layout of this driver.
2000-03-30 13:57:50 +00:00
tsutsui
58714261cc
Remove register declarations.
2000-03-30 11:37:21 +00:00
kleink
230876cf26
Merge parts of chs-ubc2 into the trunk:
...
* Remove the casts to vaddr_t from the round_page() and trunc_page() macros to
make them type-generic, which is necessary i.e. to operate on file offsets
without truncating them.
* In due course, cast pointer arguments to these macros to an appropriate
integral type (paddr_t, vaddr_t).
Originally done by Chuck Silvers, updated by myself.
2000-03-26 20:42:21 +00:00
tsutsui
9100212ef0
Add a "sc_rev" member to ncr5380_softc and handle CXD1180 quirk
...
in MI ncr5380sbc.
2000-03-25 15:27:54 +00:00
hannken
43e3ea96f3
Fix typos from last commit (callout).
2000-03-24 11:46:46 +00:00
hannken
f7049d302a
Fix a typo from last commit.
2000-03-24 10:30:12 +00:00
thorpej
7b918b4088
New callout mechanism with two major improvements over the old
...
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
resource allocation.
- Insertion and removal of callouts is constant time, important as
this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
2000-03-23 06:40:33 +00:00
pk
3b3bcd2a10
The global `mmu_3l' has been obsolete for a long time already.
2000-03-21 21:30:33 +00:00
pk
b5b8fcc5b5
Nuke global `fbnode'.
2000-03-21 21:29:16 +00:00
pk
5eb7625f42
findzs() is now used only by the kgbd initialision code.
2000-03-21 12:48:45 +00:00
pk
2db200ad14
Missing _C_LABEL().
2000-03-21 12:47:02 +00:00
pk
c5bbc50487
Delete debugging printf().
2000-03-21 11:24:02 +00:00
pk
436638ab3a
Call rcons_ttyinit() on first open.
2000-03-20 11:27:16 +00:00
pk
c1813da35e
Use fb_is_console(); retract fbconstty & fbnode from service.
2000-03-19 15:38:45 +00:00
pk
aca7e7fa24
Just don't force the baud rate in the driver, ever.
2000-03-19 14:58:02 +00:00
pk
86f03b383e
Remove __BROKEN_CONFIG_UNIT_USAGE.
2000-03-19 14:43:13 +00:00
pk
753a0ebc67
kd.c should not depend on NKBD.
2000-03-19 14:20:54 +00:00
pk
2ab6f90563
kd.c should not depend on `kbd'.
2000-03-19 14:19:17 +00:00
pk
c969f1b7df
Add `fb_is_console()', which is a helper function for frame buffer
...
device drivers used to decide whether or not to act as console output.
2000-03-19 13:48:44 +00:00
pk
b0eba37586
Add fields to hold PROM info to be used in console device matching.
2000-03-19 13:45:23 +00:00
pk
e654ecd0d8
Nuke dead code.
2000-03-19 13:38:54 +00:00
pk
0ed0e258db
Declare the prom stdio nodes and arguments.
2000-03-19 13:25:10 +00:00
pk
41fb5989fe
Revise console device handling:
...
* do not require a `zs' driver for console handling
* run the console on PROM primitives until a device recognises
itself as a console device during normal autoconfiguration.
* allow (keyboard) devices to take over the input channel of
the PROM primitive-based console device.
As a result, consinit() is much simplified and does no longer have
to "detect" devices to setup a working console device. This complexity
has moved to individual drivers which interpret the PROM information
after they have attached to decide whether or not to act as a console.
2000-03-19 13:22:14 +00:00
mycroft
0af581a1a1
Add a ncr5380_attach() routine which does part of the initialization, attaches
...
the scsibus, and does the addref/delref dance.
2000-03-18 16:13:22 +00:00
tron
e86957458a
Install "machineendian_machdep.h".
2000-03-17 22:36:31 +00:00
mycroft
9e21b6555a
In the `MY THAT'S GROSS' department...
...
Eliminate the recursive include of machine/endian.h from sys/endian.h.
2000-03-17 00:09:18 +00:00
mycroft
02905321b2
Foolish consistency. Mainly, always use underscores and sys/endian.h.
2000-03-16 15:09:34 +00:00
jdc
e8a33a63d1
Add port power management ioctls.
2000-03-14 21:24:54 +00:00
jdc
48ba774212
Fix RCS ID.
...
Add port power management.
2000-03-14 21:23:45 +00:00
jdc
797ac20035
Add power management hooks.
2000-03-14 21:20:51 +00:00
jdc
fa4417ef0c
Add enable/disable and power management hooks for serial ports.
...
Port states : always on / on when open (default) / always off
2000-03-14 21:18:27 +00:00
oster
1bad2e1909
Add the RAIDframe device major to the machine-dependent config files
...
so that the right entries get added to dev_name2blk[]. Needed for / on RAID.
(Whoops! I missed checking these in when adding the RAID_AUTOCONFIG stuff.)
2000-03-14 15:56:51 +00:00
soren
95054da1a1
Fix doubled 'the's in comments.
2000-03-13 23:52:25 +00:00
mycroft
b27007be2c
Make dependall work.
2000-03-13 03:25:20 +00:00
garbled
ea089cf90c
New features:
...
tctrl now initializes the state of the internal LCD icons. The icons
are unprogrammed at boot time. This incidentally makes the DC-POWER icon
work.
Fixes:
Fix my stupidity in the ENVSYS stuff, and actually follow the API.
2000-03-09 07:04:08 +00:00
kleink
ad7dbd825c
Define ISO C99 (unsigned) long long (min, max) symbols.
2000-03-07 19:33:00 +00:00
tsutsui
d16c6f3272
Use DISKPART/DISKMINOR/DISKUNIT instead of dkpart/dkminor/dkunit.
2000-03-07 15:55:14 +00:00
thorpej
a183d34f04
- Implement cnbell() -- ring the console bell. The cn_bell entrypoint
...
is optional.
- Add cn_bell to statically allocated consdevs as appropriate.
2000-03-06 21:36:05 +00:00
mrg
6bf88d7e9a
add a "struct device *booted_device" so that raidframe can link.
2000-03-05 08:21:57 +00:00
simonb
4eb55e447c
Do the "<space><tab>" thing with the RAID_AUTOCONFIG option.
2000-02-29 06:32:20 +00:00
oster
d9c47013b2
Defopt 'RAID_AUTOCONFIG'. Adding 'options RAID_AUTOCONFIG' turns on
...
the component auto-detection and auto-configuration of RAID sets.
Also, add "#options RAID_AUTOCONFIG" to the GENERIC config files.
2000-02-26 17:35:33 +00:00
pk
546bda740f
Revert to using <bsd.prog.mk> again, so we support all targets that may
...
be presented when building the system (noticed by Juergen Hannken-Illjes).
2000-02-26 11:48:15 +00:00
jdc
ecf1c1eb21
Add auxiotwo (Tadpole 3GX aux 2 register) entry.
2000-02-25 18:24:40 +00:00
jdc
7840960350
Driver for Tadpole 3GX "Power Down Control (Aux 2) Register".
...
Based on existing auxreg.[ch] (Sparc Aux Register driver).
2000-02-25 18:17:24 +00:00
pk
9bbc61deaa
We need <bsd.obj.mk>.
2000-02-25 16:53:22 +00:00
pk
c64db6cec7
Remove out-dated comment.
2000-02-25 16:02:49 +00:00
erh
8f03b9a04a
Define the DONETISR macro and use netisr_dispatch.h. This is to cut down on code duplication and to standardize the available NETISRs across all ports.
2000-02-21 20:38:46 +00:00
pk
dd6a9d86b0
SUN_BOOTPARAM compile-time option is no longer used.
2000-02-21 15:13:11 +00:00
pk
f89828d99f
bootxx links at 0x340000
...
2nd-stage boot programs choices: 0x200000,0x300000,0x400000,0x700000 (default: 0x300000)
2000-02-21 15:07:32 +00:00
pk
ea0dbfe79c
RELOC -> RELOC_DEFAULT
2000-02-21 14:44:18 +00:00
pk
8305907589
Build several versions of the second-stage boot program, each linked
...
to run at a different base address. Boot image build procedures can
pick one which is least likely to fail..
The default boot program is again build to run at 0x340000.
2000-02-21 14:41:22 +00:00
pk
52014b23c5
Allow second-stage boot program to be specified on the command line.
2000-02-15 16:15:07 +00:00
pk
59742052ea
Determine base address at run time.
2000-02-15 14:09:59 +00:00
pk
9bb753bb2e
Nuke unused code.
2000-02-15 12:18:05 +00:00