summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2002-01-01Add support for radio cards. Written by Maxim Tsyplakov and Vladimir Popovaugustss
for OpenBSD, from where it was imported.
2001-12-31Move the declaration of an enum to avoid an "unnamed field not allowed"thorpej
warning in gcc 3.1.
2001-12-30Registers are of u_int8_t type.junyoung
2001-12-29- Add a structure needed for access to CRTC registers.junyoung
- Add definitions for misc output register. - Add defintions for the number of registers.
2001-12-29Add functions needed for access to CRTC registers.junyoung
2001-12-29KNF.junyoung
2001-12-28Clean up the C_ and S_ constants. We don't really need two sets of them.christos
Also make the interrupt handler for older 3com cards look like the xl one. I.e. don't ack the interrupt latch bit before checking if it is set. At the same time, introduce constants for the watched interrupts, so that we don't copy them all over the place.
2001-12-23add FUJITSU MBH10302 specific Registersichiro
2001-12-22Hmmm. These were done this year, not 3 years ago.elric
2001-12-21When mapping the consumer assignment, assign db_seg[0] to cb_seg[0] so anymatt
private fields are copied as well. Then adjust cb_seq[0] public fields. This make the DEFPA come up on sparc64.
2001-12-18Previous was committed by mistake; revert.soren
2001-12-16malloc() + memset() -> malloc() with M_ZERO flagtsutsui
2001-12-16if_media support for the DP83905 AT/LANTIC (a souped-up DP8390).bjh21
2001-12-15Add code to support the bugged Macronix MX98905 chip, as used in severalbjh21
podulebus Ethernet cards. This replaces the NE2000 memory-access routines with ones that don't try to transfer more than 255 bytes at a time. This code should perhaps be merged into ne2000.c, but presumably most NE2000 clones won't need it.
2001-12-15To make dev/pcmcia work on platforms with 64-bit bus_addr_t andsoren
32-bit bus_size_t (sparc), change the pcmcia_mem_map(9) offsetp argument to bus_size_t as it is used as a bus_space offset.
2001-12-15Use bus_size_t's for bus space read/write offsets.soren
2001-12-14Register definitions for the NatSemi DP83905 AT/LANTIC, as used in manybjh21
podulebus Ethernet cards.
2001-12-14Major restructuring for swizzling to the request queue and unswizzling frommjacob
the response queue. Instead of the ad hoc ISP_SWIZZLE_REQUEST, we now have a complete set of inline functions in isp_inline.h. Each platform is responsible for providing just one of a set of ISP_IOX_{GET,PUT}{8,16,32} macros. The reason this needs to be done is that we need to have a single set of functions that will work correctly on multiple architectures for both little and big endian machines. It also needs to work correctly in the case that we have the request or response queues in memory that has to be treated specially (e.g., have ddi_dma_sync called on it for Solaris after we update it or before we read from it). One thing that falls out of this is that we no longer build requests in the request queue itself. Instead, we build the request locally (e.g., on the stack) and then as part of the swizzling operation, copy it to the request queue entry we've allocated. I thought long and hard about whether this was too expensive a change to make as it in a lot of cases requires an extra copy. On balance, the flexbility is worth it. With any luck, the entry that we build locally stays in a processor writeback cache (after all, it's only 64 bytes) so that the cost of actually flushing it to the memory area that is the shared queue with the PCI device is not all that expensive. We may examine this again and try to get clever in the future to try and avoid copies. Another change that falls out of this is that MEMORYBARRIER should be taken a lot more seriously. The macro ISP_ADD_REQUEST does a MEMORYBARRIER on the entry being added. But there had been many other places this had been missing. It's now very important that it be done. For NetBSD, it does a ddi_dmamap_sync as appropriate. This gets us out of the explicit ddi_dmamap_sync on the whole response queue that we did for SBus cards at each interrupt. Set things up so that platforms that cannot have an SBus don't get a lot of the SBus code checks (dead coded out). Additional changes: Fix a longstanding buglet of sorts. When we get an entry via isp_getrqentry, the iptr value that gets returned is the value we intend to eventually plug into the ISP registers as the entry *one past* the last one we've written- *not* the current entry we're updating. All along we've been calling sync functions on the wrong index value. Argh. The 'fix' here is to rename all 'iptr' variables as 'nxti' to remember that this is the 'next' pointer- not the current pointer. Devote a single bit to mboxbsy- and set aside bits for output mbox registers that we need to pick up- we can have at least one command which does not have any defined output registers (MBOX_EXECUTE_FIRMWARE). Explicitly decode GetAllNext SNS Response back *as* a GetAllNext response. Otherwise, we won't unswizzle it correctly. Nuke some additional __P macros.
2001-12-13ANSIfication & cosmetic changes.junyoung
2001-12-13ANSIfy.junyoung
2001-12-13ANSIfication & cosmetic changes.junyoung
2001-12-12Update the ramdac interface to be allow the setting of dotclocks. This iselric
required to support the driver in ibm561.c.
2001-12-12Initial support for the IBM RGB561 RAMDAC. This uses the same interfaceelric
as the Bt463 and Bt485 drivers.
2001-12-10Add (some) register definitions for the Motorola MPC105 PCI Bridge/Memorykleink
Controller (PCIB/MC).
2001-12-06Small change to Christos' fix: allow malloc() to return NULL, but complainaugustss
if it does.
2001-12-06change the malloc arg from NOWAIT to WAITOK; pointed out by lennard.christos
2001-12-06PR/14852: Martin Husemann: Allocate the slotdata the the probed slot beforechristos
we call the configuration function. Thanks lennard for pointing it out. XXX: Someone should look this over and make sure that the current strategy makes sense.
2001-12-06Recognize the MK48T18 as well (differs from the MK48T08 only in packagingkleink
options and voltages).
2001-12-05Compile with NWD == 0. Fixe kern/14844 by hamajima@nagoya.ydc.co.jp.bouyer
2001-12-03add NCR_VARIANT_NCR53C90_86C01 "NCR53C90 (86C01)"jdolecek
treat exactly like NCR_VARIANT_ESP100
2001-12-03Use correct format letter for chp->channel.enami
2001-12-03Update my copyrigth.bouyer
2001-12-03Allow wd to attach to something else than wdc/pciide (like USB<->ATA bridges):bouyer
- move some functions from ata.c to ata_wdc.c or wdc.c. - add callbacks to struct ata_bustype so that wd.c doesn't call directly functions from the lower level driver.
2001-12-02Clean up attach of wd/atapibus:bouyer
kill ata_atapi_attach. Change atapibus to use a struct scsipi_channel instead of ata_atapi_attach as attach arch. Create a ata_device, compatible with scsipi_channel, to attach wd.
2001-12-02Add comments naming our private-use characters (in lower case, to make thembjh21
distinct from real Unicode characters).
2001-12-01For ATAPI tape drives, poll for DSC (using a callout), to get the realbouyer
status of the command, and make sure the drive is ready for the next one.
2001-11-28ELINK_W4_UBYTESOK is 0x0d. This is probably why kim is getting x2 numberschristos
in stats.
2001-11-28use #ifdef DDB (for consistency with the rest of the kernel)lukem
2001-11-27don't allocate a mbuf cluster if we don't need.yamt
2001-11-26Added macros for the bits in the SYSBUS byte, and macrosfredette
for the i82596 PORT access interface, from the documentation for that chip. These help clarify writes to the SYSBUS part of the SCP, and PORT usage by i82596-aware drivers.
2001-11-26Use bus_space on sun2.fredette
Update the comment to match list of bus_space-using ports. Removed some old unused asm() labels.
2001-11-26move dev/isa/cs89x0{.c,{var,reg}.h} into dev/icyamt
and split isadma parts into /dev/isa/cs89x0isa*.
2001-11-26Back out new "hme" driver because it causes a performance regression ontron
"netio" on an U5.
2001-11-26Bug fixes for VLAN handling supplied by Klaus Klein in private e-mail.tron
2001-11-25Pull in Jason Wright's latest changes to the "hme" driver from OpenBSD.tron
This supports direct DMA from and into mbuf cluster, and VLAN handling is done a bit differently.
2001-11-22use little-endian crc on multicast hash for admtek chips.yamt
2001-11-21"than" instead of "then".wiz
2001-11-20- pull in opt_kgdb.h where necessarylukem
- replace opt_kgdb_machdep.h with opt_kgdb.h - defparam opt_kgdb.h: KGDB_DEV KGDB_DEVNAME KGDB_DEVADDR KGDB_DEVRATE KGDB_DEVMODE - move from opt_ddbparam.h to opt_ddb.h: DDB_FROMCONSOLE DDB_ONPANIC DDB_HISTORY_SIZE DDB_BREAK_CHAR SYMTAB_SPACE - replace KGDBDEV with KGDB_DEV - replace KGDBADDR with KGDB_DEVADDR - replace KGDBMODE with KGDB_DEVMODE - replace KGDBRATE with KGDB_DEVRATE - use `9600' instead of `0x2580' for 9600 baud rate - use correct quotes for options KGDB_DEVNAME="\"com\"" - use correct quotes for options KGDB_DEV="17*256+0" - remove unnecessary dependancy on Makefile for kgdb_stub.o - minor whitespace cleanup
2001-11-18- Use MI ADAPTER_REQ_SET_XFER_MODE callbacktsutsui
- Move values in sc_sync[] member to sc_tinfo[] - Change some u_int8_t values to int - Remove unused wide negotiation states - Misc cleanup
2001-11-18- Use MI ADAPTER_REQ_SET_XFER_MODE callback.tsutsui
- Nuke some magic numbers.