Commit Graph

189639 Commits

Author SHA1 Message Date
jruoho
c64c357910 Fix the CTL_DDB definitions (DDBCTL_XXX, not DBCTL_XXX). 2010-03-23 05:54:34 +00:00
jruoho
05ddae5e57 Document the following: ddb.maxwidth, ddb.tee_msgbuf, and ddb.commandonenter. 2010-03-23 05:52:43 +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
skrll
8967096e0f Wrap long line. 2010-03-22 23:29:11 +00:00
skrll
b5666630f1 Whitespace / comment formatting. 2010-03-22 23:27:05 +00:00
skrll
37e6252e6f Improve the output from frame_sanity_check. 2010-03-22 23:26:06 +00:00
dyoung
62b209d568 A lot of good it does to printf() a bus_space_tag_t. Don't do it. 2010-03-22 23:21:29 +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
christos
f576147073 https://bugzilla.redhat.com/show_bug.cgi?id=575383
Handle EINTR properly.
2010-03-22 22:59:06 +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
dyoung
401bfe53f2 #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:22:57 +00:00
drochner
713b10dc38 When choosing the start address of a dynamic (ie relocatable) executable,
respect the alignment in the ELF phdr.
Also, for correctness, use the maximum alignment of the PT_LOAD
sections rather than just the first one found.
Also, use more meaningful types.
2010-03-22 22:10:10 +00:00
bouyer
5b2d9a3c1c bus_dmamem_alloc() may not get a boundary smaller than size, but
it's perfectly valid for bus_dmamap_create() to do so (a contigous
transfers will then split in multiple segment).
Fix _xen_bus_dmamem_alloc_range() and _bus_dmamem_alloc_range() to
allow a boundary limit smaller than size:
- compute appropriate boundary for uvm_pglistalloc(), wich doesn't
  accept boundary < size
- also take care of boundary when deciding to start a new segment.
While there, remove useless boundary argument to _xen_alloc_contig().
Fix the boundary-related issue of PR port-amd64/42980
2010-03-22 22:03:30 +00:00
joerg
e382e1d38b Use .In instead of .Aq Pa and variantes for header files. 2010-03-22 22:00:37 +00:00
joerg
f63b030c15 Use .In instead of .Ar Pa for header files. 2010-03-22 21:58:31 +00:00
joerg
f70c7c0422 Use .In instead of .Ar Pa 2010-03-22 21:56:05 +00:00
joerg
3c70878e9a Use .In instead of .Ar Pa for headers. 2010-03-22 21:55:06 +00:00
pooka
07cd2d7f41 Use DIOCTUR to test if a newly configured CD drive is ready instead
of playing a random waiting game.
2010-03-22 20:37:26 +00:00
joerg
1c3412fa2f Use .In for header files instead of .Ar Pa and variations. 2010-03-22 19:30:53 +00:00
joerg
5e015e5e29 Use .In instead of .Aq Pa for header files. 2010-03-22 18:58:31 +00:00
joerg
d76767ed61 - Use .Li for head line in .Bl too.
- Do not use headers as example for .Aq, they should be marked up with
  .In
- Drop the use of .Xo/.Xc
- Make sure to quote .Sh as argument to .Bl. groff warns about the list
  otherwise and the size computation was off anyway as the string is
  used as literal later.
2010-03-22 18:51:32 +00:00
nakayama
91a607d2f6 Fix off-by-one in LOMlite hostname code. From rev 1.21 of OpenBSD. 2010-03-22 18:38:43 +00:00
joerg
165d9f9f8e Use .In instead of .Aq Pa for header files. 2010-03-22 18:36:27 +00:00
joerg
26590112cf Use .In instead of .Aq Pa for header files 2010-03-22 18:35:09 +00:00
joerg
46b2dedeba Use .In instead of .Aq Pa for header files. 2010-03-22 18:34:14 +00:00
joerg
899808a54d Use .In instead of .Aq .Pa for signal.h. 2010-03-22 18:33:27 +00:00
dyoung
fa492e587b Detach at shutdown. 2010-03-22 17:23:44 +00:00
dyoung
d90e716868 psc_pwrmgmt_csr_reg was never initialized to the actual offset of the
PCI PMCSR!  Just delete psc_pwrmgmt_csr_reg and all uses of it.  In this
way, ex_pci_disable() becomes a no-op, so delete it, too.
2010-03-22 17:20:42 +00:00
dyoung
d004de5f13 Check whether the fxp(4) actually attached before calling fxp_stop(). 2010-03-22 17:12:09 +00:00
dyoung
1f0573c286 Add a self-suspensor. It's not used, yet.
In ex_detach(), call ex_stop(), first.  ex_stop() stops the callout.
Destroy the callout in ex_detach().
2010-03-22 17:11:19 +00:00
jakllsch
a6fc850cd8 Ensure cd9660_read() gives accurate EOF indication.
Should fix PR/42983.
2010-03-22 16:57:54 +00:00
martin
b1400f8892 Add a DIOCTUR (test unit ready) ioctl, to allow userland to easily
(and silently) check for presence of media. While this would be easy
to implement via SCIOCCOMMAND, our kernel has quirks for this
command, which otherwise would not be readily available to userland
applications.
2010-03-22 16:49:41 +00:00
cegger
8b8ee0c1f1 Ignore ioapic write failures.
They happen when writing to ioapic pins Xen already disabled.
This makes netbsd dom0 booting.
2010-03-22 16:43:08 +00:00
dyoung
47726121b6 Add a detach routine. Enable detachment at shutdown.
psc_pwrmgmt_csr_reg was never initialized to the actual offset of the
PCI PMCSR!  Just delete psc_pwrmgmt_csr_reg and all uses of it.  In
this way, fxp_pci_disable() becomes a no-op, so delete it, too.
2010-03-22 16:17:43 +00:00
dyoung
86a23e81c4 In fxp_detach(), fxp_stop(), first. fxp_stop() stops the callout.
Destroy the callout in fxp_detach().
2010-03-22 16:11:58 +00:00
jruoho
dfc3a8d66a Fix the previous commit properly: we need to set all sensor-flags during the
initialization of sysmon_envsys(9), otherwise, if _STA does not return true
during the attachment of the driver, it is possible that a flag is never
set. This flaw has always been present, but it only got exposed after the
conversion to use the sysmon-limits.
2010-03-22 15:08:35 +00:00
pooka
9a12bbeba5 Include bthub support.
As mario knows, it should be in another component, but just cram
it here for now until someone solves kernel module dependencies
for us.
2010-03-22 14:47:02 +00:00
pooka
4f4d4d6450 deal with ioconf.h 2010-03-22 14:42:01 +00:00
pooka
d0e5d93744 Some drivers want to include ioconf.h, so generate it if doing
"ioconf" config.
2010-03-22 14:40:54 +00:00
jruoho
66475d5b9d Break the (too) big lead paragraph into three smaller ones. 2010-03-22 13:15:54 +00:00
jruoho
dd1725f2c7 Add a missing word introduced in the previous commit. Thanks, snj@. 2010-03-22 12:39:22 +00:00
pooka
9b255ab4af Add rumpdev_ubt and rumpnet_netbt components. 2010-03-22 12:27:46 +00:00