Commit Graph

5361 Commits

Author SHA1 Message Date
jakllsch a3d0188791 Prepare ahcisata(4) to work with 64-bit bus_dma_tag_t. 2010-07-20 19:24:11 +00:00
jakllsch a8cb5ed6da Convert ahcisata(4) to C99 exact-width integer types. 2010-07-20 18:50:48 +00:00
jklos 644246af8b Add support for 16650's prescaler from Frank Wille. Tested with
IOblix on Amiga.
2010-07-20 06:17:20 +00:00
kiyohara 3a80d8ba65 Fix wrong ifdef. 2010-07-13 12:57:22 +00:00
kiyohara 66dad59009 Move to pci/mvsata_pci.c (marvell/mvsata_mv.c) splitting mvsata_products[].
mvsata(4) uses these to match.
2010-07-13 12:53:42 +00:00
pgoyette 5738004561 Fix logic error in detecting length of DDR3 SPD covered by CRC check.
Reported by Jonathan Gray in private email - thanks!
2010-06-29 04:42:30 +00:00
macallan 108405a01e register definitions for Brooktree Bt461 and Bt462 RAMDACs, used on CG12 and
others
2010-06-24 03:30:36 +00:00
tsutsui 5a93b5b6c1 No need to include PCI header files in bus independent code. 2010-06-13 03:08:15 +00:00
macallan 2b22cbf04c set RI_NO_AUTO then attaching early, clear it otherwise 2010-05-12 20:58:52 +00:00
martin 1205a48106 Use callout_halt() instead of callout_stop() - otherwise gem_detach() might
be too fast and run callout_destroy() while another cpu is still busy
in the callout.
2010-05-12 10:25:23 +00:00
isaki d4edb08e10 Move "opt_slhci.h" from .h to .c
to avoid link error (multiple definition of _KERNEL_OPT_foo).
2010-05-08 01:33:00 +00:00
tsutsui 7ea90218ce Make local functions static. 2010-05-04 15:38:04 +00:00
jakllsch 488f603517 Add (missing) newlines to error messages. 2010-05-02 17:37:52 +00:00
chs b95f5863b7 add byte-swapping so that this works on BE platforms.
the logic is based on the current freebsd driver.
fixes PR 42870.
2010-04-28 22:45:27 +00:00
rmind 84b7918250 Fix KASSERTMSG() to be consistent with KASSERT() logic, not inverted.
Hi matt@!
2010-04-25 15:39:41 +00:00
dyoung bac6fbbd00 Don't printf bus_space_tag_t's in a MI driver. 2010-04-21 21:49:53 +00:00
dyoung ad6e139a80 Add default implementations for bus_space_is_equal(9),
bus_space_tag_create(9), and bus_space_tag_destroy(9).  Use
bus_space_is_equal(9) throughout the kernel to compare
bus_space_tag_t's.  Tested on i386 and on sparc64.
2010-04-19 18:24:26 +00:00
dyoung 7916748801 #include <sys/bus.h> instead of <machine/bus.h>. No functional change
intended.
2010-04-16 18:58:39 +00:00
tsutsui dc04f4f064 Fix botched logic in ipkdb part in rev 1.77 (KNF misc). 2010-04-11 09:58:36 +00:00
jakllsch 295766de32 Improve error paths in (e)siop_scsipi_request():
- When terminating the adapter request after the cmd has been removed
   from the free list, put that cmd back on the free list before returing.
 - Correctly indicate which bus_dma_load() failed.

Analysis and fix from Michael L. Hitch in PR/42844.
2010-04-09 19:25:52 +00:00
nonaka a314257ee8 Added 8110SBL support. 2010-04-09 10:40:59 +00:00
nonaka 38ac2371ac Added PCA9564 I2C Controller driver. 2010-04-09 10:09:49 +00:00
jakllsch 9d1be6b12e satafis:
- Add function to parse RDH FIS for use in implementing AT_READREG.
- Correct and clean up some structure definitions.
- Sprinkle a bit of const.
- Remove dependency on <dev/ic/wdcreg.h>, WDCTL_4BIT doesn't seem
  to be specified by any recent ATA standard, and it seems to make
  no difference in practice.
- Stop using WDSD_IBM, these bits have been obsolete since before SATA.

siisata:
- Implement AT_READREG.
- Reap now-unneeded <dev/ic/wdcreg.h>.
- Whitespace and slight debug code cleanup.
- Some possibly-uncessary code reordering.

ahcisata:
- Implement AT_READREG.
- Reap now-unneeded <dev/ic/wdcreg.h>.
2010-04-07 17:51:16 +00:00
nonaka 8dfa6d1a29 Added support RICOH 5C316. 2010-04-06 15:29:19 +00:00
joerg 58e867556f Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.
2010-04-05 07:19:28 +00:00
macallan 87ba095012 remove a now useless bus_space_barrier() 2010-03-31 21:01:03 +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
tsutsui dd38ae84c7 Don't warn about DMA timeout during probe. 2010-03-29 15:51:03 +00:00
snj 7f4ce11823 Spell "enough" properly. 2010-03-28 20:46:18 +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
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
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
njoly 712d8d88f4 Add some missing aprint_naive calls. 2010-03-23 12:13:28 +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 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 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
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
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
tsutsui 8058413106 Replace some magic numbers with macro. Tested on SMC_TT on atari. 2010-03-19 15:59:22 +00:00
tsutsui 3b71237085 Misc KNF. 2010-03-19 14:57:52 +00:00
tsutsui e875fdc857 No need to override mem_ring value in ne2000_ipkdb_attach()
since a wrong calculation in dp8390_ipkdb_attach() was fixed.
2010-03-19 14:26:37 +00:00
dyoung cc222cba88 Don't pick up the network-interface, ethernet, and 802.11-related
definitions by chance (or by the bus-specific front-end #including them!).
#include them here, instead.
2010-03-19 01:32:30 +00:00
dyoung 1d4183c115 Don't pick up the <sys/sysctl.h> definitions by chance,
but #include here.
2010-03-19 01:31:11 +00:00
dyoung 14d897a9e1 Make this compile on sparc64:
1 s/next_tick/next_tint/ because next_tick shadows a global on sparc64.

2 Fix the bus-barrier helper routines, which had the tag & handle
  swapped (!!).  Move the helpers from rtwreg.h to rtwvar.h, and
  change RTW_BARRIER() into an inline subroutine called rtw_barrier().
2010-03-15 23:21:08 +00:00
dyoung 9650f1c575 Use device_suspensor_t instead of struct device_suspensor. 2010-03-14 21:25:59 +00:00
pgoyette 89bf6ebb9f Remove setting of edata->monitor since that member no longer exists. 2010-03-14 18:05:07 +00:00
tsutsui 74c4eb5262 - make local functions static
- const'ify
2010-03-13 15:27:40 +00:00