Commit Graph

778 Commits

Author SHA1 Message Date
gdamore
34537908ab Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@.  Fixes PR port-evbmips/32362.
2006-07-13 22:56:00 +00:00
thorpej
55e8bbeb6e Put appropriate prefixes on property names to reduce chances of name
collisions.
2006-07-10 16:28:44 +00:00
mrg
ba1331d1b0 don't pass unsigned char * to functions wanting char *. 2006-07-03 01:21:50 +00:00
tsutsui
62040eebd7 Add (commented out) pseudo-device carp. 2006-06-30 10:51:46 +00:00
martin
d8c7f94e0e Implement bus_space_*_stream_* methods for sgimips - so that we can use the
atheros wlan driver. Thanks to Izumi Tsutsui for lots of input. All errors,
as usualy, are mine though.
2006-06-08 19:29:16 +00:00
tsutsui
a465c6b884 Tweak bus_space_barrier(9) macro to appease
"left-hand operand of comma expression has no effect"
warnings by gcc4.
2006-05-26 13:23:34 +00:00
pavel
8f6c91f9fd Enable the gsip driver. Worked when I (lightly) tested it.
No objections on port-sgipips@.
2006-05-23 08:18:35 +00:00
elad
8ccb6c9341 integrate kauth. 2006-05-14 21:55:09 +00:00
thorpej
fb44a8574b Remove the devprop API and switch everthing over to the new proplib. Add
a new device_properties() accessor for device_t that returns the device's
property dictionary.
2006-05-05 18:04:41 +00:00
thorpej
948898912b Don't include <sys/endian.h> if building as a host tool. 2006-05-05 17:59:41 +00:00
simonb
aa879cde70 sgimips uses event counters for interrupts, don't need intrcnt/intrnames
any more.
2006-04-28 01:12:51 +00:00
drochner
1168954c68 adjust comments for the new location of wskbdmap_mfii.c,
addresses PR kern/33290 by henry nelson
2006-04-19 10:31:44 +00:00
tsutsui
936c3743c7 Switch macepci to use MI pci_configure_bus(9) rather than its own fixup code.
Tested on my O2 with several devices, and ok'ed by sekiya.
2006-04-17 14:01:08 +00:00
tsutsui
bf7d106360 Add adv at pci. Tested on my O2. 2006-04-17 12:46:35 +00:00
tsutsui
35a607184b Mising -> Mixing 2006-04-16 16:39:36 +00:00
tsutsui
f5c7cb6a8d Fix function names in panic messages. 2006-04-16 16:29:34 +00:00
tsutsui
cd453227e1 _ds_vaddr member in struct sgimips_bus_dma_segment is a virtual address,
so it should be vaddr_t rather than bus_addr_t.
2006-04-16 08:26:41 +00:00
jmmv
aec18036fd Remove the getwschar and putwschar accessops from wsdisplay drivers as
requested by uwe@.  These were wrong because they were receiving an
emulcookie yet they were accessops (thus having to receive an accesscookie).
Instead, just handle the WSDISPLAYIO_{GET,PUT}WSCHAR ioctls from the
driver's ioctl accessop.

As this reduces the amount of code needed to handle these operations to
two small functions in each driver, remove the WSDISPLAY_CHARFUNCS kernel
option.

Reviewed by, at least, uwe@ and macallan@.  No objections in tech-kern@.
2006-04-15 17:48:23 +00:00
tsutsui
ce21617f93 Add AHC_USETARGETDEFAULTS to ahc_flag, which enables to
use default target (but not for host) device settings on
ahc(4) interface without its SEEPROM (mostly on-board one).

This flag could be useful if host's BIOS (firmware) initializes
ahc(4) chip with some conservative (async, no tagged queuing etc.)
target settings for minimum support to load its primary loader etc.,
and it will be enabled in each attachment according to MD device
properties(9). Currently this property is set only on sgimips for
O2 on-board aic7880 adapters.

No objection on tech-kern (and netbsd-bugs), and closes PR kern/23276.
2006-04-15 14:22:52 +00:00
jmmv
7a51d4dddc Add an extra cookie to the ioctl and mmap wsdisplay accessops that points
to the screen on which they are being called.  The driver cannot guess
this by itself but it is needed to implement, at least, the getwschar and
putwschar functions in the correct place.  There are no functional changes
yet.

Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64.
Suggested and reviewed by macallan@.
2006-04-12 19:38:22 +00:00
tsutsui
9c7179ce5d Remove declarations for cpu_model[] since it's in <sys/systm.h>. 2006-04-09 01:18:14 +00:00
tsutsui
27ec859c0e Add some delay() on asserting MEC_MAC_CORE_RESET. 2006-04-02 11:20:46 +00:00
thorpej
2be6494fc9 Use device_cfdata(). 2006-03-29 04:16:44 +00:00
pavel
dc1372c547 Add stf to all kernel configs which have INET6 and gif, except the INSTALL
ones and those for specific machines of developers. PR 32304.

OK'ed by rpaulo.

N.B. stf is a cloning device, so it still must be enabled by
"ifconfig stf0 create".
2006-03-28 20:58:39 +00:00
thorpej
39cd836ee1 Use device_unit(). 2006-03-28 17:38:24 +00:00
lukem
a1f606d3fd Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
2006-03-08 23:46:22 +00:00
yamt
ec5a93183a merge yamt-uio_vmspace branch.
- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.
2006-03-01 12:38:10 +00:00
thorpej
132ce1f07f Use device_is_a() 2006-02-26 05:24:52 +00:00
thorpej
458b3e43f7 Use device_parent(). 2006-02-23 05:37:46 +00:00
perry
fbae48b901 Change "inline" back to "__inline" in .h files -- C99 is still too
new, and some apps compile things in C89 mode. C89 keywords stay.

As per core@.
2006-02-16 20:17:12 +00:00
cube
6ff13154dd Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
2006-02-05 05:01:48 +00:00
rpaulo
23b8c23173 bpfilter doesn't accept count anymore. 2006-02-04 03:33:20 +00:00
tsutsui
c0bcc1e045 Add commented out UDF file-system entry in GENERIC-like configurations. 2006-02-03 13:52:14 +00:00
christos
606bb2caed free -> dealloc
unsigned -> size_t for alloc/dealloc
2006-01-25 18:28:25 +00:00
rumble
809e7519ba Fix the comment. It is perfectly valid to have a kernel that supports
MIPS1 and MIPS3. However, we need a separate config due to different
start addresses.
2006-01-03 02:09:02 +00:00
kurahone
3a97f79ed6 Added support for the IP22 IOC's parallel port (PI1).
Code contributed by Joe Britt.

Reviewed by <sekiya> and <kurahone>.
2005-12-28 08:31:09 +00:00
perry
5f1c88d70d Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:06:46 +00:00
ginsbach
d357be2474 Fix the build of sgivol as a host tool on a platform without libutil,
e.g. MacOS X.  Identical to method used in the disklabel(8) Makefile.
2005-12-23 03:28:10 +00:00
thorpej
c97c3de6e9 Remove the tablet line discipline. 2005-12-20 05:35:27 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
tsutsui
3922f98c0e Sync with other ports:
> Add (commented out) Veriexec options and pseudo-device to GENERIC kernels.
2005-12-10 14:41:17 +00:00
tsutsui
f32d48a2f6 Use 64bit access ops for MEC_PHY_* registers (for consistency). 2005-12-10 07:05:10 +00:00
tsutsui
a36263cd7a Reset and disable watchdog explicitly in crime_attach(). 2005-12-10 07:00:40 +00:00
tsutsui
ff9b47d69e Adjust comments for options FFS_NO_SNAPSHOT.
XXX: This option should be mentioned in options(4).
2005-12-07 09:10:11 +00:00
tsutsui
ca2b187449 Use aprint_debug() instead of aprint_normal() for messages
of establishing/disestablishing mace interrupt.
2005-11-26 06:18:40 +00:00
thorpej
cfc81086d9 swcr -> swcrypto 2005-11-25 16:41:31 +00:00
thorpej
7385cdd346 "pseudo-device crypto" really refers to the /dev/crypto API to the
opencrypto framework, not the framework itself.  Update the comment
accordingly.
2005-11-25 16:35:11 +00:00
thorpej
751f32db24 Add "pseudo-device swcr" (commented out if "pseudo-device crypto" is also
commented out).
2005-11-25 16:30:23 +00:00
yamt
bc21da4cfb bus_dmamem_map: honour BUS_DMA_NOWAIT. noted by Manuel Bouyer.
bus_space_map: always do NOWAIT allocation as it used to be before yamt-km.

we have too many copies!
2005-11-24 13:08:32 +00:00
tsutsui
1fd2caa23d Add njs* at pci, which works fine on my O2. 2005-11-23 08:14:50 +00:00