Commit Graph

445 Commits

Author SHA1 Message Date
bouyer
43d3408b53 In auxio_blink(), only toggle the AUXIO_LED_LED bit, don't clear the others.
It looks like bit 3 control the on-board le's link test, clearing it breaks
the interface (no link detected on the remote end). bit 3 is defined as
AUXIO4M_LTE (link-test enable) for sun4m systems (maybe all the AUXIO4M_*
bits are valid on the Ultra/1 too ?).
Tested on Ultra/1 and Ultra/5, approved by Martin Husemann and Matthew Green.
Should fix port-sparc64/25039 by Lubomir Sedlacik.
2004-10-14 17:58:06 +00:00
mrg
7f549a8679 allow the LED blinker to be disabled via do_blink. 2004-09-29 04:45:05 +00:00
drochner
b1ce7363e0 clean up the questionable use of sabtty_match() as submatch function
(with no useful contents), and implement a real submatch function instead
2004-09-13 14:32:38 +00:00
drochner
46289e1fef Phase out the use of a string as first "attach args" member to control
which bustype should be attached with a specific call to config_found()
(from a "mainbus" or a bus bridge).
Do it for isa/eisa/mca and pci/agp for now. These buses all attach to
an mi interface attribute "isabus", "eisabus" etc., and the autoconf
framework now allows to specify an interface attribute on config_found()
and config_search(), which limits the search of matching config data
to these which attach to that specific attribute.
So we basically have to call config_found_ia(..., "foobus", ...) where
such a bus is attached.
As a consequence, where a "mainbus" or alike also attaches other
devices (eg CPUs) which do not attach to a specific attribute yet,
we need at least pass an attribute name (different from "foobus") so
that the foo bus is not found at these places. This made some minor
changes necessary which are not obviously related to the mentioned buses.
2004-08-30 15:05:15 +00:00
drochner
c67a72f6ff make PCI devices attachable/detachable (as far as the particular drivers
allow), and allow to rescan a bus selectively (ie only the device/
function I'm looking at)
2004-08-17 23:20:10 +00:00
drochner
4f2a6309fe give the special PCI bus enumerator a sparc64_ prefix and make the
PCI_MACHDEP_ENUMERATE_BUS macro point to it
2004-07-29 16:53:15 +00:00
pk
8539b88f6e _sbus_bus_map: check for the existence of `ranges' in the tag before using them. 2004-07-28 19:15:47 +00:00
heas
420275788e Collect and save the FFB DAC version, which will be needed for the h/w cursor
since the Elite3d's logic is reversed.  From FreeBSD.
Fix comments in wsdisplay_accessops initialisation.
2004-07-19 01:04:35 +00:00
heas
381b4b602e Add comments for a few of the FFB registers.
From FreeBSD.
2004-07-19 01:00:48 +00:00
heas
f509a0a9b2 If we are serial console, insert a delay just after switching from prom
i/o functions to talking to the sab directly, allowing any residual prom
output to drain.  There does not appear to be a prom "flush" function.

Adresses PR 26226.
2004-07-19 00:28:42 +00:00
heas
9fb2efa68d Use aprint_normal consistently. 2004-07-17 21:23:10 +00:00
heas
ae5ea826a2 The DAC registers do not need to be mapped linearly and thus should not. 2004-07-01 14:54:13 +00:00
petrov
ef4d3a19c3 iommu_dvma_load_raw: reserve extra dvma page. Fixes PR #13654. 2004-07-01 06:40:36 +00:00
pk
9d70d77aae sbus_attach: use bus_space_tag_allocate();
sbus_bus_map: use bus_space_translate_generic();
sbus_bus_addr: use BUS_ADDR().
2004-06-30 21:37:49 +00:00
petrov
3c80c1c781 pci_find_ino: support pci-pci bridges. 2004-06-11 03:52:00 +00:00
seb
c97029b2ee Add cnmagic(9) support: previously only <Break> was supported to break
into the debugger or ROM monitor from the console.
Note that <Break> is still the default.

Thanks to martin@ for testing.
Approved by petrov@.
2004-06-10 12:11:19 +00:00
petrov
9b8bcb0518 Add DIAGNOSTIC in iommu_dvmamap_load if pmap_extract fails. 2004-06-03 06:17:05 +00:00
heas
a60b59cc89 Map the ffb's DAC register space and add support for video "blanking"
(aka WSDISPLAYIO_{S,G}VIDEO).
2004-05-21 21:45:04 +00:00
heas
de28b23591 ffb wsdisplay type should be sunffb/SUNFFB 2004-05-21 19:21:31 +00:00
heas
d07b682ed3 add DAC command/value register offsets 2004-05-20 01:50:43 +00:00
kleink
0e5d242328 Update for new pci_devinfo(9) signature. 2004-04-24 15:49:00 +00:00
simonb
9bc855a931 s/the the/the/ (only in sources that aren't regularly imported from
elsewhere).
2004-04-23 02:58:27 +00:00
nakayama
1de145799e Revert a part of rev. 1.44.
OF_getprop can get only the first "reg" property with a statically
allocated buffer, but prom_getprop cannot.
This should fix a "kernel trap 30: data access exception" when you
invoke a pcictl(8).
2004-04-04 11:53:40 +00:00
nakayama
dcfdceefdd Set prom_getprop args correctly. 2004-03-28 09:31:21 +00:00
nakayama
323fc574b9 Make 32-bit kernels compile with options DEBUG. 2004-03-22 12:21:58 +00:00
nakayama
8b6b7ba030 Make 32-bit kernels compile with options DIAGNOSTIC. 2004-03-22 12:20:52 +00:00
pk
4021f0eb39 Use prom_getpropstring(). 2004-03-21 16:29:42 +00:00
pk
e8397400f7 Some more promlib interface conversions. 2004-03-21 16:09:13 +00:00
pk
05a2b2300b Use the promlib I/O routines. 2004-03-21 15:08:24 +00:00
pk
b865f2441c stdin' and stdout' are obsolete. 2004-03-21 15:07:00 +00:00
pk
107e759b1c Two commas went missing in last commit. 2004-03-21 14:28:47 +00:00
pk
f7fe3a3531 Partial switch to the promlib interface. 2004-03-21 14:22:52 +00:00
martin
55dfc16be5 Make sure prom_getprop is called with the size pointed to by nitem
initialized. (Some of these are more paranoia, but two were actual bugs.)
Print error codes in some panic messages.
2004-03-21 12:50:14 +00:00
petrov
2f1de3c8b2 More on fbnode to prom_stdout_node rename. 2004-03-19 21:10:31 +00:00
pk
d6f1cac110 zs_console_flags: use prom_getoption(). 2004-03-19 15:42:46 +00:00
pk
7417e05ce6 Drop fbnode & stdinnode. 2004-03-19 15:31:04 +00:00
pk
6c02638ef2 Sync with sparc: rename
stdinnode => prom_stdin_node,
	fbnode => prom_stdout_node.
2004-03-19 15:21:42 +00:00
pk
ea53363e84 Rename PROM_getprop*() => prom_getprop*(). 2004-03-17 17:04:58 +00:00
pk
fcac5c14aa Pass the buffer size to PROM_getpropstringA(), as in sparc. 2004-03-17 15:22:57 +00:00
pk
8512c4b642 Use prom_getoption() and drop home-grown string-to-integer conversion code. 2004-03-17 14:03:22 +00:00
pk
6c325ce299 ffb_attach: Use prom_getoption() and drop home-grown string-to-integer
conversion code.
2004-03-17 13:58:14 +00:00
snj
d02c32fcce s/rediculous/ridiculous/ 2004-02-13 22:47:04 +00:00
wiz
d20841bb64 Uppercase CPU, plural is CPUs. 2004-02-13 11:36:08 +00:00
petrov
e7595eb1ce For pci devices without ofw mapping find ino by pci bus/slot/device
information, from OpenBSD.
2004-01-21 07:16:07 +00:00
tsutsui
1dad999926 Fix address calculation for split segment address when the buffer is
crossing boundary in iommu_dvmamap_load().
Fixes E2BIG error on dmamap with smaller boundary size than maxxfersize
(which is used by recent changed pcscp(4)).

While here, some KNF around debug printf etc.
2003-11-16 18:18:59 +00:00
martin
76bfd5ab17 Nuke bcopy/bzero. 2003-11-09 14:28:56 +00:00
petrov
5a0a3beffd Attach zs to sbus only, current driver cannot attach to mainbus. 2003-10-31 20:06:54 +00:00
christos
44cf8a09e9 Fix uninitialized variable warning. 2003-10-26 19:15:00 +00:00
christos
3684598911 Actually initialize the size that is printed in case of an error, so garbage
does not get printed.
2003-10-26 19:14:22 +00:00
petrov
de7eafdbf8 don't initialize an int with NULL. 2003-10-21 08:20:15 +00:00