Commit Graph

1432 Commits

Author SHA1 Message Date
matt 5bd1e75033 Add NEC 1394 OHCI chips 2000-05-26 05:06:27 +00:00
bouyer b063b2ec36 Separate the sheduler from the main script, allocate another DMA-safe
memory page for the sheduler. Put the main script in the on-chip RAM when
available.
Avoid a null-pointer dereference when DSA is invalid.
2000-05-25 10:10:54 +00:00
thorpej 4f92d2cd54 Update from Bill Studenmund <wrstuden@zembu.com>:
- Note that the FreeBSD driver distributed by Cyclades served as
  documentation on how the board works.
- Use the wait-until-pending-I/O-completes-before-loading-parameters
  command in czttyparam().
- Pass BREAKs up to the tty later properly.
- Garbage-collect some debugging code.
2000-05-24 22:26:35 +00:00
thorpej 8f7304f9b7 Typo in previous. 2000-05-23 16:47:44 +00:00
thorpej 5c9920bbb6 Update from Bill Studenmund <wrstuden@zembu.com>:
Correctly send and receive BREAKs -- still needs to do something
intelligent with them.  Some additional debugging goo.
2000-05-23 01:02:21 +00:00
wiz c2b6147132 Replaced overlooked BROOKTREE_SYSTEM_DEFAULT with BKTR_SYSTEM_DEFAULT,
as noted by Roger Hardiman.
2000-05-22 01:00:29 +00:00
wiz 56cb02c358 Use bktr_softc.bktr_dev.dv_xname instead of "bktr0" when printf'ing as
requested by Klaus Klein in kern/10166.
Also add device instance name to all printf's that didn't have it.
2000-05-21 15:43:56 +00:00
augustss c3e3a945cc Add a missing bktr%d: in one of the attach messages.
(When is this code going to be KNFed?)
2000-05-20 16:16:15 +00:00
tsutsui f2973e2fb8 - Change RL_* -> RTK_*
- Free bus_dma resources if attach fails
- Add detach and power management code

Patch from Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp> in kern/10156.
2000-05-19 13:42:29 +00:00
thorpej 3e403cdb65 In tiocm_to_cztty(), use SET() instead of CLR() in the
TIOCMBIS case.  "Oops!"
2000-05-19 06:01:14 +00:00
thorpej 59164fe0fc Fix an inverted test. 2000-05-18 17:55:17 +00:00
drochner 6095f60587 regen 2000-05-18 13:04:27 +00:00
drochner 309b0ed70d fix typo in last commit 2000-05-18 13:03:31 +00:00
garbled 4d3e8e6976 regen 2000-05-18 08:03:22 +00:00
garbled 81fd58c65b Add the device ID for the IBM MPIC-II. 2000-05-18 08:02:19 +00:00
thorpej 5274a6162f Add a device driver for the Cyclades-Z series of intelligent multi-port
serial boards.  Written by Jason R. Thorpe and Bill Studenmund.
2000-05-17 17:58:09 +00:00
thorpej 07ea678d4d Register definitions and preliminary API definition for the PLX 9060
family of PCI bus controllers.
2000-05-17 17:47:00 +00:00
bouyer c4042e45a5 Sync my copyrigth notice. 2000-05-15 08:46:00 +00:00
bouyer e557084177 Update for siop split. 2000-05-15 08:27:24 +00:00
bouyer a1c4db6c37 - split siop_pci in attachements vs helper functions, for comming esiop
- add a reset callback to enable PCI-specific features. This improve bandwith
  by a factor of 2 on my alpha with a 875 !
- sync copyrigth notice
2000-05-15 07:53:17 +00:00
thorpej e5ae7c287a Symbol namespace cleanup: rl_ -> rtk_ 2000-05-15 01:55:12 +00:00
thorpej a4b298224a Use <dev/ic/ac97reg.h> 2000-05-15 01:35:29 +00:00
thorpej 1838aef29c ac97.h -> ac97var.h 2000-05-15 01:27:44 +00:00
soren 8513bb93ed Regen. 2000-05-14 14:58:14 +00:00
soren b84dfa7c45 Add SGI IOC3. 2000-05-14 14:56:53 +00:00
jhawk e0292df01c sc_ih (interrupt cookie) is not pci-specific data
and needs to remain in fxp_softc rather than fxp_pci_softc;
otherwise we break cardbus.
2000-05-12 18:46:33 +00:00
thorpej cd82969dfc Print the revision info from the PCI configuration header. From
Dave Sainty, kern/10025.
2000-05-12 17:52:07 +00:00
thorpej c8de5ae180 Treat the 3c980C-TXM like the 3c980 Server Adapter. From Paul J. Lavoie,
kern/10037.
2000-05-12 17:48:47 +00:00
thorpej 032c5f01de Regen. 2000-05-12 17:47:05 +00:00
thorpej 0a712d4707 Add product ID for 3Com 3c980C-TXM 10/100 Ethernet. From Paul J. Lavoie,
kern/10037.
2000-05-12 17:46:47 +00:00
thorpej 288883fca7 Apply indent(1). 2000-05-12 16:42:41 +00:00
thorpej 6474f16852 Use ether_crc32_le(). 2000-05-12 16:41:59 +00:00
jhawk 421c001447 Move struct fxp_pci_softc declaration to if_fxp_pci.c removing an
unnecessary header file (if_fxp_pcivar.h); oh, how quickly the nascent
inodes are subject to infant mortality.
2000-05-12 13:46:31 +00:00
jhawk cd552bf956 Fix bugs seen on Sony Vaios.
Address kern/9370, kern/9548, kern/9571, and kern/9573.

Save and restore critical PCI configuration registers because they are
sometimes bashed.
Add a powerhook to restore said PCI registers after APM events.
The fxp now works across a warm boot from windows (vaio).
The fxp now works across an apm suspend/resume or hibernate/resume cycle.
2000-05-12 03:37:40 +00:00
jhawk 6622f20fc1 Move pci-specific data to fxp_pci_softc from fxp_pci_softc.
Add some more pci-specific data to fxp_pci_softc.
2000-05-12 03:36:18 +00:00
jhawk 8d671b6292 Define some PCI power management CSR constants. 2000-05-12 03:35:34 +00:00
thorpej 5786c811d5 Support 64-bit PCI memory mapping registers, as sometimes are used
on the Symbios 53c896 controller.  Also, prefer memory space over
I/O space.
2000-05-10 17:22:46 +00:00
thorpej 90f7e687dc These are no longer used. 2000-05-10 17:09:44 +00:00
thorpej d56c0ff801 Support Adaptec U2W cards with a 64-bit PCI memory range (such cards
are available with Power Macintosh G3 and G4 systems).
2000-05-10 17:07:52 +00:00
thorpej 5939e70ca3 Add support for mapping 64-bit PCI memory space. If the region
is mapped in a way that is inaccessible by a 32-bit bus_addr_t, then
print a message to that effect and return failure.

Original patches by Bill Studenmund, with a few small changes by me.
2000-05-10 16:58:42 +00:00
kleink 7a6f003756 Add a comment describing the previous change. 2000-05-10 08:39:58 +00:00
haya 7d4bae615d Move if_rl_pci.c:1.7 to if_rtk_pci.c. 2000-05-10 00:19:55 +00:00
bouyer 05e928a241 Ops, abort if we can't map the registers ! Pointed out by Matthias Drochner. 2000-05-09 17:05:52 +00:00
dante 2648a72bb2 Minor changes to PCI configuration 2000-05-08 17:11:54 +00:00
joda 6d3ce966ce VIA VT82C686A hardware monitor 2000-05-08 16:40:42 +00:00
kleink 05f0b17555 Make pci_get_capability() work correctly on both header type 0 and type 2
devices; both have different Capability List Pointer registers.
2000-05-08 10:52:38 +00:00
kleink 085ec82073 Add a register offset for the Capability List Pointer in header type 2.
XXX Ideally the PCI-Cardbus Bridge header should be restructured to just
XXX present standard register definitions, making it ~safe to be included.
2000-05-08 10:45:52 +00:00
kleink de328af944 Fix a inverted logic botch introduced in rev. 1.35, typically causing
cb_chipset() to return the wrong chipset type.
2000-05-08 07:31:20 +00:00
wiz 8651580247 man page is written, remove it from TODO 2000-05-07 20:47:10 +00:00
jonathan 8ee4c016eb PCI product codes for Yamaha YMF744B (DS-1S) YMF754 (DS-1E) audio chips. 2000-05-07 17:00:06 +00:00
jonathan 0d57ac396d Product codes for Yamaha YMF744B (DS-1S) YMF754 (DS-1E) audio chips. 2000-05-07 16:56:34 +00:00
veego f7e2752025 Change one 0 for bootverbose to 1 if DEBUG is defined. 2000-05-07 14:59:23 +00:00
veego 20ae91400c Add a dummy bootverbose. 2000-05-07 14:49:11 +00:00
veego 21942247f3 It is a bad idea to declare a static bootverbose variable here. Remove it. 2000-05-07 14:43:31 +00:00
wiz 4211fcfd7e remove unnecessary output to console 2000-05-07 13:50:10 +00:00
wiz 7392f90215 multiple inclusion protection 2000-05-07 03:01:58 +00:00
wiz 3d3dc5c594 add one 2000-05-07 01:46:01 +00:00
wiz 2f7dba9ea1 compilation fix 2000-05-07 01:16:23 +00:00
wiz 4caea4817d some glue for bktr-driver 2000-05-07 00:25:58 +00:00
wiz 5f8b869a3e Some NetBSD specific changes; also TODO, and import script, based
on bind2netbsd by Bernd Ernesti
2000-05-07 00:24:33 +00:00
wiz 8b27ce1a70 Import of (finally busspaced) bktr-driver from FreeBSD (part 1).
This version is from the location specified in the README, modified
by bktr2netbsd, to be committed later.
2000-05-07 00:16:17 +00:00
soren 5e209d22f7 Print the usual interrupt line. 2000-05-06 00:46:19 +00:00
thorpej 5a5c88dc4e `typedef void ifnet_ret_t;' isn't valid C -- use #define, instead. Also,
don't abuse the C preprocessor.
2000-05-03 21:08:02 +00:00
thorpej 081e7cbdaf `typedef void ifnet_ret_t;' isn't valid C -- use #define, instead. 2000-05-03 20:52:29 +00:00
bouyer 3bb9a5f666 - do sync/wide negotiation
- use a circular queue for the start slots, so that order has better chances
  to be preserved.
2000-05-02 19:03:02 +00:00
nathanw 8ca78ff825 In siop_lookup_product(), actually check the PCI *vendor* ID as well as the
product ID.
Prevents false matches of other devices, such as the DEC 21050 ppb.
2000-05-02 03:59:35 +00:00
augustss 4e1e58e353 Change the way the codec is access to mimic how Linux&FreeBSD does it. 2000-05-01 17:15:41 +00:00
tsutsui 9498452c05 - Move some initialization into MI rl_attach() from each bus attachment.
- Use proper CARDBUS_* macro in if_rl_cardbus.c
- Use product ID read from PCI configuration space rather than from EEPROM
  in if_rl_pci.c.

Patch sent from Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp> and
some cosmetic changes by me.
2000-05-01 15:08:50 +00:00
augustss fec9706315 Remove unneeded #include "mpu.h" 2000-04-30 22:16:56 +00:00
augustss aaa405eab7 Add driver for C-Media CMI8x38 Audio Chip. From Takuya SHIOZAKI <AoiMoe@imou.to> 2000-04-30 21:59:58 +00:00
dante 1dbea6c0f9 Add new microcode for all of the supported boards.
Fix minor glitches.
Add preliminary support for ASB-3940U3W host adapters; it might work w/ autotermination on.
ASB-3940U3W support is not yet tested due to lack of board.
2000-04-30 18:52:14 +00:00
dante ff84aeb762 Add ASB-3940U3W host adapters (AdvanSys) 2000-04-30 18:46:18 +00:00
dante d2679acf60 Add ASB-3940U3W host adpeter (AdvanSys) 2000-04-30 18:34:53 +00:00
tsutsui 439b360ab9 Modify EEPROM read functions and handle also 9356 EEPROM.
Fixes kern/9861.
2000-04-30 12:00:40 +00:00
augustss d2e2dce826 Regen. 2000-04-28 20:54:39 +00:00
augustss 0b9c397110 Add 2 more eap audio devices. 2000-04-28 20:54:10 +00:00
uch bbb8c56fcb add PCI_MAPREG_PPB_END (PCI-PCI bridge) PCI_MAPREG_PCB_END (PCI-Cardbus bridge) 2000-04-28 17:12:45 +00:00
augustss 30c20f930f Change my email address. 2000-04-27 15:26:44 +00:00
bouyer bf7a94ec2b Fix copyrigth notice. 2000-04-27 14:06:57 +00:00
thorpej ef25b7769e Regen. 2000-04-26 17:30:59 +00:00
thorpej 0defe75e76 Add product ID for the PLX Technology 9060ES PCI bus controller. Note this
ID isn't normally seen, as just about every device with a PLX on it loads
a different ID from an EEPROM, but there's no harm in documenting it.
2000-04-26 17:30:35 +00:00
tsutsui b4f524c223 - Allocate mbuf dynamically on Tx and use bus_dmamap_load_mbuf(9).
- Call bus_dmamap_sync(9) as appropriate.
- Leave only register declarations in rtl81x9reg.h and
  split other stuff into rtl81x9var.h.

bus_dma(9) code mostly taken from thorpej's if_rtp.c.
2000-04-26 14:02:34 +00:00
tsutsui 6369b56c99 Fix two endian problems. rtk now works on macppc.
- Use le32toh() on reading rxstat from the Rx DMA buffer.
- rl_read_eeprom() should return EEPROM values in little endian
  when caller requires byte-stream data.

bus_dma(9) fixes are still on-going.

XXX rtk on macppc seems to make tons of CRC errors...
XXX Does it work fine on i386 or others?
2000-04-25 14:16:46 +00:00
augustss 74beeca710 Move the size of the mapped bus_space region into the bus independent softc. 2000-04-25 09:20:54 +00:00
augustss aae26d0d0c Move a test if the MIDI is open outside a loop in the interrupt routine.
Some stylistic changes.
2000-04-24 17:55:24 +00:00
tsutsui 6f9392b42a Merge changes of sys/pci/if_rl.c rev. 1.8->1.10. (from kern/9870)
Also remove unused pbase, vbase and PCI_CAP_PWRMGMT declarations.
2000-04-24 15:25:00 +00:00
augustss 5ea1af4bf4 Regen. 2000-04-22 18:07:19 +00:00
augustss f468f877de Add some CMedia audio devices. From T.SHIOZAKI <AoiMoe@imou.to> 2000-04-22 17:32:02 +00:00
bouyer 19ada4a82a Snapshot of work in progress: new driver for the NCR 53c8xx SCSI controller
(the name 'siop' is still being discussed, may change).
Only basic disconnect/reselect for now, no sync/wide negotiation.
Tested with 810A, 875 and 895 on i386 only.
The bus-independant part should also be able to handle the 53c720 and 53c770.
A new driver with enhanced script should appear for the 825/875/895 'soon'.
2000-04-21 17:56:58 +00:00
nathanw 3e49436f9d Replace rcons console code with rasops console code.
Console text should now be supported on all TGA cards;
8- and 32-bit TGA and 8-bit TGA2 have been tested.

Implement accelerated character drawing, scrolling, and clearing.

Stop clearing "odd" in VHCR; it's unnecessary and hurts performance.

Use bus_space_vaddr() instead of a local hack.
2000-04-20 05:25:20 +00:00
haya 784977f319 Changes the name of RealTek driver. The new name is `rtk'. This used
to be called `rl' and it conflict with RL vax disks, canonical and
historical unix driver name.

This changes are minimal: it only changes the name of RealTek driver.
The filename of source code and a lot of the letter `rl' in source
files should be changed shortly.
2000-04-19 08:44:31 +00:00
bouyer 5803932005 Regen 2000-04-19 07:52:33 +00:00
bouyer 01beba012a Add some Symbios devices. 2000-04-19 07:51:20 +00:00
cgd 0d117aa518 regen for changed pcidevs 2000-04-18 16:38:12 +00:00
cgd 88e62f7c84 SiByte, Inc. is vendor 0x166d. 2000-04-18 16:37:00 +00:00
cgd a267efd061 #if 0 the (way bogus) PCI_CLASS_COMMUNICATIONS/PCI_SUBCLASS_BRIDGE_PCI (!!!)
match pointed out (again?) by Johan Danielsson, after i repeatedly told
him not to do something similar in com_cardbus.
2000-04-17 16:45:04 +00:00
thorpej d8bccc7c6e Regen. 2000-04-17 00:26:45 +00:00
thorpej fcd420cf5d Add product ID for the S3 Trio3D/2X AGP graphics adapter. 2000-04-17 00:26:22 +00:00
haya e49807d100 Incorporate the changes of RL81x9 driver provided by M. Kanaoka
<kanaoka@ann.hi-ho.ne.jp>.  He separated the driver into IC specific
portion and bus attachment portion and added cardbus attachent.
2000-04-10 07:42:55 +00:00
tsutsui 909b096cf8 Remove #ifdef __NetBSD__ code inside !__NetBSD__ part. 2000-04-08 13:49:43 +00:00