Commit Graph

26692 Commits

Author SHA1 Message Date
macallan
ab2f46a1d0 Add preliminary support for the ADM1031 found in the Sun Blade 2500 and similar
machines. For now we treat it like an ADM1030 - the only difference is the
device ID and a few previously reserved registers.
2010-03-31 18:07:13 +00:00
macallan
38fe6d6284 Do as OpenSolaris does and read the status register after each write.
Now this driver works on my Blade 2500.
2010-03-31 05:09:41 +00:00
tnn
014ac6d91a yinterrupt -> interrupt 2010-03-30 14:38:27 +00:00
dyoung
0841103645 Attach acpiecdt with acpibus_attach_args. Sverre Froyen reports that
this helps his Thinkpad boot again.
2010-03-29 16:35:59 +00:00
tsutsui
dd38ae84c7 Don't warn about DMA timeout during probe. 2010-03-29 15:51:03 +00:00
kiyohara
b22c29ccbf Remove more my debugging code. 2010-03-29 07:34:02 +00:00
kiyohara
d5a3582188 Remove debugging process. 2010-03-29 03:42:15 +00:00
kiyohara
7235cdcfc7 Remove obsolete file. 2010-03-29 03:07:24 +00:00
kiyohara
af09db112b Bye-bye fw_port.h. 2010-03-29 03:05:27 +00:00
snj
7f4ce11823 Spell "enough" properly. 2010-03-28 20:46:18 +00:00
pgoyette
0a999d0c06 Update acpiapm_get_powstat() to adjust for the recent changes to
acpi_bat(4).  (The warn_cap and low_cap sensors were removed, and the
values are now stored as the alarm limits of the charge sensor.)
2010-03-28 13:11:23 +00:00
pgoyette
aae23aaf98 Constify the args to sysmon_envsys_foreach_sensor()'s callback function. 2010-03-27 13:34:16 +00:00
pgoyette
5dbc4fad52 Fix the locking protocol in sysmon_envsys_foreach_sensor(), and add an
additional argument to control whether or not the sensors are refreshed
before invoking the callback routine.
2010-03-27 13:23:18 +00:00
nonaka
821373d09b Added sdhc at cardbus support. 2010-03-27 03:04:51 +00:00
pgoyette
6c1f2c419a Make this work the way the preceeding comment blocks says it works, and
break out of the while{ } when the callback returns false, not when it
returns true!
2010-03-26 21:06:25 +00:00
mjacob
06aa1abd00 Synchronize with other platforms:
Strongly architect handles so we can more easily detect bogus
	handles. This switches us to a full 32 bits for all handles.

	Handle the case of FC disks disappearing and then reappearing-
	at least at the FC transport level.

	Some better and finer control of debug and non-debug printouts.
2010-03-26 20:52:00 +00:00
pgoyette
1de3adb5f4 Add a routine to iterate over all the sensors on the system. This will
be needed to update acpiapm_get_powstat() which is currently slightly
broken due to recent rearrangement of acpi_bat(4)'s sensors.  (This
approach is in lieu of exporting proplists between kernel entities, and
avoids exposing some internal sysmon_envsys details.)
2010-03-26 20:31:06 +00:00
pooka
54be9a9f62 Catch up with cosmetic changes to output from config(1) 2010-03-26 15:51:55 +00:00
jakllsch
c2ca7b837e Fix build of i386 ALL kernel with patch from Greg A. Woods in PR/43056. 2010-03-26 15:46:04 +00:00
pgoyette
e235f1e850 Export the sensor device's class. 2010-03-26 12:36:59 +00:00
pooka
929e108067 Convert to config_init/fini_component.
tested by jruoho
2010-03-26 05:59:26 +00:00
tnn
7c4a3fc1a3 sys/dev/ic/videomode.h is almost identical to sys/dev/videomode/videomode.h
Remove the former.
2010-03-24 19:33:51 +00:00
njoly
3e46e29198 Fix ENVSYS_DEBUG build. 2010-03-24 19:15:00 +00:00
pgoyette
7e351badfc In sysmon_envsys_sensor_event(), permit delivery of all events for the
sensor if no event type is specified.
2010-03-24 13:11:41 +00:00
pgoyette
0c7008e9c3 Set the SME_INIT_REFRESH flag so that the sensors' values (including
charge's max_value) are available when the event monitors are created.
2010-03-24 12:18:54 +00:00
pgoyette
f8d161b1f5 Do the initial refresh before creating the event monitors, in case the
event monitors require some of the data loaded by the refresh.  For
example, the initial refresh might load sensor limits and max_value in
addition to the cur_value.
2010-03-24 12:15:54 +00:00
pgoyette
c998024539 Only set the APM_BATT_FLAG_NO_SYSTEM_BATTERY if _all_ batteries are
not_present.
2010-03-24 01:45:37 +00:00
dyoung
f52f7d91ef Do not use unitialized bus_space_tag_t's. Use the tag(s) from the
attachment arguments.
2010-03-24 01:13:30 +00:00
macallan
da6c0e814c first stab at a driver for the cg12 / matrox cg3
for now it uses the same monochrome overlay as OBP, otherwise it's got the
usual wsdisplay / vcons goodies
TODO:
- fill in mmap and ioctl methods so we can at least run X in monochrome
- figure out where the 24bit buffer is ( and maybe if there's an 8 bit buffer )
- see if we can do any acceleration
- find the DAC registers
2010-03-24 00:33:06 +00:00
pgoyette
d41a3cef46 Split spdmem driver into a bus attachment and a common back-end
probe and ROM decode, to follow similar changes made in OpenBSD:

        http://article.gmane.org/gmane.os.openbsd.cvs/94948
        http://article.gmane.org/gmane.os.openbsd.cvs/94956

There exists at least one alternative attachment (for SGI IP35
systems; see http://article.gmane.org/gmane.os.openbsd.cvs/94947),
and there could be more in the future.

Thanks to Christoph Egger for pointing out the OpenBSD activity.
2010-03-24 00:31:41 +00:00
dyoung
8183d39c9c In the #definition of PCI_HME_BASEADDR, use PCI_BAR(0) instead of the
anonymous constant 0x10.
2010-03-23 21:54:23 +00:00
dyoung
e99a7c0550 Put back PCI_HME_BASEADDR. 2010-03-23 21:51:39 +00:00
dyoung
a75c1e887e Use the PCI BAR type to decide which I/O enables to set.
TBD: Put back the old BAR #definition, s/PCI_BAR(0)/PCI_HME_BASEADDR/.
2010-03-23 21:22:25 +00:00
martin
d6bdba5871 Properly convert values according to block size differences between the
underlying device (might be a CD drive) and the sun label when carrying
over defaults from a ISO9660 partition.
2010-03-23 20:01:09 +00:00
martin
ce69648c34 If we find a device in non-2048 byte/block mode and manage to switch
it over, we need to adjust the capacity - so just read it again.
2010-03-23 18:56:18 +00:00
pgoyette
bc480daf7a Additional info in DPRINTF to help debugging efforts 2010-03-23 16:52:02 +00:00
jakllsch
165a0cf70b Rework module/builtin code so it works in both cases.
(Tested recently in the module case, slightly less recently as builtin.)

<haad> [if it works] go for it
2010-03-23 15:09:45 +00:00
martin
5a5dcf5530 Make cdclose() silent, if we only have the raw partition open (e.g. when
probing for media and not finding any)
2010-03-23 12:42:55 +00:00
njoly
712d8d88f4 Add some missing aprint_naive calls. 2010-03-23 12:13:28 +00:00
mrg
c7d0a3b0b6 only apply the satalink 3112 rev 0.1 and earlier to actual 3112 based
cards, not eg, 3512 cards.

should help performance for 3512 cards, derived from discussions in
PR#42980: satalink DMA fails under amd64.
2010-03-23 03:24:53 +00:00
dyoung
5b5c3a7fb8 pckbc.c, vga.c: It doesn't appear to be helpful to compare two
bus_space_tag_t's in pckbc_is_console() and vga_is_console(), and MI
    code should never do such a thing, so don't do it.

tcic2.c: #if 0 some diagnostic code that compares two bus_space_tag_t's.
2010-03-22 23:08:34 +00:00
dyoung
51ff4e6509 ex_softc.ex_bustype is written but never read. Just get rid of it. 2010-03-22 23:03:30 +00:00
dyoung
3feffcb736 Set/test sc_csr_memmapped instead of comparing bus_space_tag_t's. 2010-03-22 23:01:10 +00:00
dyoung
e4be36cf6a sc_csr_memmapped is true iff the device registers are memory-mapped. 2010-03-22 23:00:47 +00:00
dyoung
6b732a0da7 MI code should not compare bus_space_tag_t! Introduce tags_are_equal()
for "comparing" two bus_space_tag_t's.  It is always true.

Everywhere that com(4) compares two tags, it compares to I/O base
addresses, too; comparing the base addresses should suffice.

TBD Clean this up more thoroughly.
2010-03-22 23:00:08 +00:00
dyoung
775885a345 MI code must not printf() a bus_space_tag_t, so don't do that. 2010-03-22 22:41:59 +00:00
dyoung
04ac8ab807 Activate PCI memory-mapped I/O access in the PCI Control and Status
Register if the PCI BAR is the memory-mapped type.  The driver used to
decide whether to activate memory-mapped access by testing the truth of
pci_attach_args.pa_memt; that isn't MI, and it doesn't make sense.
2010-03-22 22:39:48 +00:00
dyoung
4d3f510cc9 #if 0 some diagnostic code that compares two bus_space_tag_t's.
MI code should not compare an opaque type such as bus_space_tag_t!
2010-03-22 22:36:07 +00:00
dyoung
8b0029011b isadma.c: #if 0 some diagnostic code that compares two bus_space_tag_t's.
pcdisplay.c: #if 0 some code that compares two bus_space_tag_t's
    in order to see if pcdisplay0 is console.  It does not seem to
    be helpful to compare the tags; maybe the author intended to
    compare some other bus property?

MI code should not compare an opaque type such as bus_space_tag_t!
2010-03-22 22:30:58 +00:00
dyoung
f5423e5e40 Do not disestablish the interrupt handler inside of the interrupt
handler!  Stops a crash on the HP Pavilion N3270.

Cosmetic: sc->ih is a pointer, so set to NULL instead of 0.  Compare
with NULL instead of testing truth.
2010-03-22 22:25:26 +00:00