Commit Graph

207 Commits

Author SHA1 Message Date
thorpej d1ad2ac4f2 Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver.  The cfdriver is then looked
up in a list which is built at run-time.
2002-09-27 02:24:06 +00:00
gehenna 77a6b82b27 Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
isaki dd0e0396bc Add driver for ScanLogic SL811HS/T USB Host Controller.
XXX It's experimental code yet.

For x68k: USB part of Nereid USB/Ethernet/memory board
For ISA:  ISA USB Host board from Morphy planning
2002-08-11 13:17:52 +00:00
isaki 2997fb2d61 Fix printf format in DIAGNOSTIC. 2002-08-04 13:08:29 +00:00
isaki 2450cd0acc Fix compile warnings in debug code. 2002-08-03 06:38:41 +00:00
hannken 5868a9832a Convert to new device buffer queue interface.
Approved by: NISHIMURA Takeshi <nsmrtks@netbsd.org>
2002-08-01 12:45:20 +00:00
isaki 733ad2d0f4 Fix compile warnings in debug code. 2002-07-31 11:01:26 +00:00
thorpej 2b20452bf1 Statements must follow labels. 2002-05-30 22:19:11 +00:00
thorpej 5da14150ab Don't include macro params when #undef'ing it. 2002-05-30 22:11:14 +00:00
matt 84eb329d14 Eliminate commons (including many used ones). Clean up variable references. 2002-05-14 02:03:00 +00:00
isaki c78a609db3 Support slinear8, slinear16_le, slinear16_be. 2002-04-07 14:52:27 +00:00
bouyer e5727031fb Implement mstohz() as discussed on tech-kern, and use it in SCSI drivers
to convert xs->timeout to callout() parameter.
2002-04-05 18:27:45 +00:00
isaki 677cd20c7f initialize codec variables every open(). 2002-04-02 15:22:37 +00:00
isaki d4e117205d set factor=1/2 even if recording. 2002-03-26 15:05:29 +00:00
atatat 31144d9976 Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command".  ERESTART is -1, which can lead to
confusion.  ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4.  No ioctl code should now return -1 anywhere.  The
ioctl() system call is now properly restartable.
2002-03-17 19:40:26 +00:00
isaki 81b3e9fb81 Fix mis-increment bug in converter msm6258_ulinear8_to_adpcm().
This fix needs factor_denom.
2002-03-16 09:00:42 +00:00
isaki 81fa322c19 Add another address, vector configuration of Nereid ethernet. 2002-01-14 04:25:47 +00:00
wiz 5514d0b117 bcopy/bcmp/bzero -> memcpy/memcmp/memset 2001-12-27 02:23:24 +00:00
minoura 7a7e9cfe7b Implement bus_dmamap_sync properly.
dma_cachectl is now used only for DMAC array chain.
2001-12-19 14:53:26 +00:00
minoura 4ee42d6a56 Ooops, previous commit removed an important line unintentionally. 2001-12-04 15:21:28 +00:00
minoura bbfb453233 Remove unused variables.
Correct printf format strings.
2001-11-25 16:00:05 +00:00
minoura fe68996902 Previous commit was incomplete. 2001-11-25 15:45:26 +00:00
minoura e8ac9084a2 Make this file compile again. 2001-11-25 15:43:06 +00:00
minoura f7b4b90acd Avoid using array chaining mode of DMAC. 2001-11-25 00:38:50 +00:00
isaki 2108a5c977 Rewrite vs_query_encoding() using array. 2001-11-13 09:27:06 +00:00
isaki c2e9ead40b Clean up debug messages. Separate it two debug levels. 2001-11-13 09:06:00 +00:00
isaki 85e2e11f39 Support an ethernet part of Nereid.
Nereid is the board of ethernet/USB/memory for X68k
developed by X-PowerStation, a japanese X68k circle.
See http://xps.jp/ but only written in japanese.
2001-11-11 01:39:02 +00:00
isaki 20d2e2f7e8 Support BUS_SPACE_MAP_SHIFTED_EVEN for bus_space_map().
Now BUS_SPACE_MAP_SHIFTED means BUS_SPACE_MAP_SHIFTED_ODD.
It is needed for Nereid Ethernet.
2001-11-11 01:38:00 +00:00
tsutsui 064be15283 Use common macro to check message length. 2001-11-04 12:03:41 +00:00
isaki 3c63a64cab Change 3 glyphs according to SRAM flags (0xed0059),
when ITELOADFONT ioctl is issued.
2001-10-21 03:46:30 +00:00
augustss 1339e88a86 Add a new optional method, dev_ioctl, to the audio hardware driver interface.
It is called when an unrecognized ioctl() is performed on a device,
thus allowing ioctl()s that frob the hardware driver (like loading
microcode).
2001-10-03 00:04:47 +00:00
mrg e309f80412 remove bogus comment. noted by Tetsuya Isaki <isaki@par.odn.ne.jp> in private email. 2001-08-26 12:14:22 +00:00
wiz cc0b68092e Correct various misspellings of 'transfer' and inflected forms. 2001-07-08 18:06:42 +00:00
wiz 0a600be867 receive, not recieve 2001-06-12 15:17:10 +00:00
lukem d84d2c6c85 add missing #include "opt_kgdb.h" 2001-05-30 15:24:23 +00:00
minoura 2d8c98280c Cleanup. Addresses port-x68k/13051. 2001-05-28 06:18:20 +00:00
minoura d0403f9f11 Add missing line in recording. Copy & paste error... 2001-05-27 05:30:02 +00:00
minoura cbfe174737 Reset dx_nextoff and dx_nextsize before transfer. 2001-05-27 02:18:07 +00:00
minoura 423279efd8 Honor rtc_offset. 2001-05-26 21:32:30 +00:00
minoura d5d0b41422 Reset the status register after abort. 2001-05-22 00:16:49 +00:00
minoura 8809460317 Correct ring buffer handling in recording. From Isaki-san. 2001-05-22 00:15:54 +00:00
minoura 4bff72882b Missings from the previous commit.
From Izaki-san.
2001-05-15 09:10:05 +00:00
minoura 0bb85c4922 Encoding ulinear and mulaw are both software emulated.
From Isaki-san.
2001-05-07 09:42:30 +00:00
minoura c9c82d303a Use cdev_decl for prototype declarations (port-x68k/12829, thanks to scw
for suggestion).
Add static to some non-external functions.
2001-05-05 01:52:56 +00:00
minoura 58b62ea0cf Correct playing mu-law and linear. 2001-05-03 02:09:11 +00:00
minoura 3e3968872c Remove old obsolete audio driver. 2001-05-02 13:24:52 +00:00
minoura b2cec36854 X68k built-in voice synthesizer. 2001-05-02 13:00:19 +00:00
minoura f4b1b4cef9 Do not use constants, but macros. 2001-05-02 12:50:24 +00:00
minoura 47d22455b3 Disable array chain mode by default, since it is unused by any of
the current devices.
Add more flexibility in the API.
2001-05-02 12:48:24 +00:00
scw 2963ff5c58 Add `l_poll' to `struct linesw' and provide an xxxpoll() entry point
in each tty driver to indirect through it.

This allows tty line-disciplines to handle poll(2) system calls.
2001-05-02 10:32:08 +00:00