Commit Graph

50 Commits

Author SHA1 Message Date
thorpej
cdac01064e Rename the COM16650 option to COM_16650, for consistency with other
com variant options.
2004-05-01 19:03:59 +00:00
nathanw
6b89d04a4a The Au1500 doesn't have an i2s interface. 2004-03-16 18:13:45 +00:00
wiz
d20841bb64 Uppercase CPU, plural is CPUs. 2004-02-13 11:36:08 +00:00
simonb
210a9530eb Use UART_SIZE instead of a (redefined) COM_NPORTS. 2003-12-15 09:13:41 +00:00
simonb
4ebec9cd61 Add a define for the size of the UART register block. 2003-11-08 05:49:08 +00:00
simonb
edaec67118 Use the COM_AU1x00 option for Au1x00 feature support. 2003-11-08 05:12:51 +00:00
simonb
52f438d9a8 Sync with com.c, rev 1.222. 2003-11-08 05:10:11 +00:00
simonb
8899101173 Add a "COM_AU1x00" option, similar to COM_PXA2X0, for enabling Au1x00
features in the "com" driver.
2003-11-08 05:05:14 +00:00
simonb
4116da8027 Sync with dev/ic/com.c rev 1.221. 2003-11-07 02:08:35 +00:00
simonb
8338dcf797 More bogus uninitialised warnings. 2003-10-27 02:16:15 +00:00
simonb
e93422fa5f Remove "struct aubus_ohci_softc". As well as ohci_softc_t, it only had
a copy of the interrupt cookie which isn't used outside the attach.  We
has also bogusly only told the autoconfiguration machinery that our softc
was as big as a ohci_softc_t, not a struct aubus_ohci_softc.
Also, disestablish the interrupt if OHCI initialisation fails.
2003-10-23 04:58:32 +00:00
simonb
513b330566 Tell the Alchemy Au1x00 on-chip ohci that we're in big-endian mode if
necessary.
2003-10-18 04:34:30 +00:00
simonb
136dd90b25 Remove unused ohci stub. 2003-10-18 04:31:37 +00:00
agc
aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
lukem
4b2744bf35 __KERNEL_RCSID() 2003-07-15 02:43:09 +00:00
thorpej
d876aa082a Nuke the "alchemy_info" stuff, and just use the dev_propdb to set
the mac-addr property for the Au1x00 on-chip MACs.
2003-07-04 01:19:58 +00:00
fvdl
d5aece61d6 Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
simonb
9e8290fbee Use the com softc enabled/disable hooks instead of directly frobbing
Au1x00 registers in com_attach_subr().  Suggested by Jason Thorpe and
tested on both console and extra serial ports.
2003-06-29 13:18:24 +00:00
simonb
261417ff31 Fix 'struct lwp *' lossage. 2003-06-29 12:34:55 +00:00
he
57822a30b2 Conditionalize usage of the COM_HW_HAYESP constant on COM_HAYESP.
Add a dummy type argument to the local (au)comcnattach to match the change
in the prototype of the "real" comcnattach.

Reviewed and tested by simonb.
2003-06-27 07:39:34 +00:00
martin
d505b18964 Make sure to include opt_foo.h if a defflag option FOO is used. 2003-06-23 11:00:59 +00:00
tsutsui
71ef8e5915 Use common mips/softintr.c for softintr(9) on evbmips.
Ok'ed by simonb.
2003-05-25 14:08:19 +00:00
hpeyerl
5eefd45be5 Read USBH_ENABLE twice in succession according to Errata 7 for au1500. 2003-04-03 16:41:23 +00:00
hpeyerl
295e297794 de-slob-ify. (I'm a slob) 2003-04-02 02:18:52 +00:00
hpeyerl
badb1c52ec OHCI front-end driver for Alchemy cpu's. We now have USB Host support.
Tested on PB1500 and DB1500 boards.
2003-04-01 17:36:45 +00:00
hpeyerl
29422429f6 add defines for Alchemy clock and frequency control registers. 2003-04-01 17:30:09 +00:00
hpeyerl
56f13f6fa9 allocate an aubus dma tag. 2003-04-01 17:29:11 +00:00
hpeyerl
9cda767630 support active low, level triggered interrupts, needed for ohci front end. 2003-04-01 17:28:24 +00:00
simonb
d38e1fa853 Use "rxintr" for the name of the receive interrupts evcnt instead
of "txintr".  Much less confusing that way...
2003-03-27 01:21:52 +00:00
simonb
0a30e5fb17 Fix a grammatical nit. 2003-03-22 14:26:41 +00:00
he
0f55132c91 Initialize the two new members of "struct console" to NULL so that
this file compiles again.
2003-03-08 09:42:56 +00:00
simonb
b2e8253950 Zero out the TX buffer when padding packet to ETHER_MIN_LEN-ETHER_CRC_LEN. 2003-01-17 12:40:20 +00:00
simonb
c018fbe68d Tidy up event counter increments a little. 2003-01-16 01:14:17 +00:00
simonb
c69f520bc8 Removed unused register map; this info is now passed in with the attach
args.
2003-01-16 01:05:39 +00:00
thorpej
dbb0f0ebed Use aprint_normal() for cfprint routines. 2003-01-01 01:47:30 +00:00
simonb
aa5595f691 Fix typo in the address of the Au1500 MAC1 enable register; 2nd MAC works
on the Au1500 cpu now.
2002-11-17 04:57:34 +00:00
simonb
ba1c8ffa9d Remove reference to mips_int5_evcnt from here; that is port-specific,
not arch-specific.
2002-11-17 04:56:57 +00:00
simonb
396f36cc12 Fix a typo in the on-board device selection machinery (which I thought
I'd committed long ago).
2002-11-11 16:39:18 +00:00
jdolecek
e0cc03a09b merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-23 09:10:23 +00:00
thorpej
89bf5a8f8e Add trailing ; to CFATTACH_DECL. 2002-10-02 15:52:22 +00:00
thorpej
c5e91d447d Use CFATTACH_DECL(). 2002-10-02 04:55:47 +00:00
thorpej
c4cbfcf060 Use CFATTACH_DECL(). 2002-10-01 02:54:11 +00:00
thorpej
f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +00:00
provos
0f09ed48a5 remove trailing \n in panic(). approved perry. 2002-09-27 15:35:29 +00:00
thorpej
6c88de3b53 Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller.  Use it
rather than invoking cfattach->ca_match directly.
2002-09-27 03:17:40 +00:00
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
simonb
c38f2b0214 Remove some debug code accidently left in. 2002-07-29 16:25:02 +00:00
simonb
223e50d28e Add a slightly modified dev/ic/com.c that supports the Alchemy
Semiconductor Au1x00 series on-chip UARTs.  Will be merged with
the original com.c driver once a few issues are tidied up.  Main
differences from a standard 16550 UART are:
 - separate rxdata and txdata registers
 - single 16-bit register for the clock divisor
 - "enable uart" register
2002-07-29 15:42:41 +00:00
simonb
ca42af5e80 Add support for the the Alchemy Semiconductor Au1x00 series on-chip
devices.  Currently the serial ports and ethernet MAC have working
drivers, and this has only been physically tested on the Au1000 CPU,
but these devices should work on the Au1100 and Au1500 CPUs too.
2002-07-29 15:39:11 +00:00