| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Notes:
svn path=/head/; revision=158001
|
|
|
|
|
|
|
|
| |
intr_event_remove_handler().
- Remove tty: prefix from a couple of swi handler names.
Notes:
svn path=/head/; revision=151700
|
|
|
|
| |
Notes:
svn path=/head/; revision=151690
|
|
|
|
| |
Notes:
svn path=/head/; revision=151383
|
|
|
|
|
|
|
| |
since ebus.c rev. 1.22.
Notes:
svn path=/head/; revision=146966
|
|
|
|
| |
Notes:
svn path=/head/; revision=139749
|
|
|
|
|
|
|
|
|
|
|
| |
New devicename is ttyz{port}
No callout devices created.
Isn't this driver superseeded by uart(4) anyway ?
Notes:
svn path=/head/; revision=136459
|
|
|
|
| |
Notes:
svn path=/head/; revision=135367
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
subset ("compatible", "device_type", "model" and "name") of the standard
properties in drivers for devices on Open Firmware supported busses. The
standard properties "reg", "interrupts" und "address" are not covered by
this interface because they are only of interest in the respective bridge
code. There's a remaining standard property "status" which is unclear how
to support properly but which also isn't used in FreeBSD at present.
This ofw_bus kobj-interface allows to replace the various (ebus_get_node(),
ofw_pci_get_node(), etc.) and partially inconsistent (central_get_type()
vs. sbus_get_device_type(), etc.) existing IVAR ones with a common one.
This in turn allows to simplify and remove code-duplication in drivers for
devices that can hang off of more than one OFW supported bus.
- Convert the sparc64 Central, EBus, FHC, PCI and SBus bus drivers and the
drivers for their children to use the ofw_bus kobj-interface. The IVAR-
interfaces of the Central, EBus and FHC are entirely replaced by this. The
PCI bus driver used its own kobj-interface and now also uses the ofw_bus
one. The IVARs special to the SBus, e.g. for retrieving the burst size,
remain.
Beware: this causes an ABI-breakage for modules of drivers which used the
IVAR-interfaces, i.e. esp(4), hme(4), isp(4) and uart(4), which need to be
recompiled.
The style-inconsistencies introduced in some of the bus drivers will be
fixed by tmm@ in a generic clean-up of the respective drivers later (he
requested to add the changes in the "new" style).
- Convert the powerpc MacIO bus driver and the drivers for its children to
use the ofw_bus kobj-interface. This invloves removing the IVARs related
to the "reg" property which were unused and a leftover from the NetBSD
origini of the code. There's no ABI-breakage caused by this because none
of these driver are currently built as modules.
There are other powerpc bus drivers which can be converted to the ofw_bus
kobj-interface, e.g. the PCI bus driver, which should be done together
with converting powerpc to use the OFW PCI code from sparc64.
- Make the SBus and FHC front-end of zs(4) and the sparc64 eeprom(4) take
advantage of the ofw_bus kobj-interface and simplify them a bit.
Reviewed by: grehan, tmm
Approved by: re (scottl)
Discussed with: tmm
Tested with: Sun AX1105, AXe, Ultra 2, Ultra 60; PPC cross-build on i386
Notes:
svn path=/head/; revision=133589
|
|
|
|
|
|
|
|
|
|
|
|
| |
future:
rename ttyopen() -> tty_open() and ttyclose() -> tty_close().
We need the ttyopen() and ttyclose() for the new generic cdevsw
functions for tty devices in order to have consistent naming.
Notes:
svn path=/head/; revision=132226
|
|
|
|
|
|
|
|
| |
o Make debugging code conditional upon KDB instead of DDB.
o Call kdb_alt_break() instead of db_alt_break().
Notes:
svn path=/head/; revision=131917
|
|
|
|
| |
Notes:
svn path=/head/; revision=131410
|
|
|
|
|
|
|
| |
the need for a local ioctl handler.
Notes:
svn path=/head/; revision=131110
|
|
|
|
|
|
|
| |
Bump __FreeBSD_version accordingly.
Notes:
svn path=/head/; revision=130585
|
|
|
|
| |
Notes:
svn path=/head/; revision=130241
|
|
|
|
|
|
|
|
|
| |
linesw[] directly to using the ttyld...() functions
The ttyld...() functions ar inline so there is no performance hit.
Notes:
svn path=/head/; revision=130077
|
|
|
|
|
|
|
| |
the linedisc directly.
Notes:
svn path=/head/; revision=130057
|
|
|
|
|
|
|
| |
in <sys/kernel.h>
Notes:
svn path=/head/; revision=130026
|
|
|
|
|
|
|
|
| |
Submitted by: Mark Santcroos <marks@ripe.net>
Reviewed by: imp, dfr, bde
Notes:
svn path=/head/; revision=127135
|
|
|
|
|
|
|
|
|
|
|
| |
Introduce d_version field in struct cdevsw, this must always be
initialized to D_VERSION.
Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing
four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
Notes:
svn path=/head/; revision=126080
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add missing D_TTY flags to various drivers.
Complete asserts that dev_t's passed to ttyread(), ttywrite(),
ttypoll() and ttykqwrite() have (d_flags & D_TTY) and a struct tty
pointer.
Make ttyread(), ttywrite(), ttypoll() and ttykqwrite() the default
cdevsw methods for D_TTY drivers and remove the explicit initializations
in various drivers cdevsw structures.
Notes:
svn path=/head/; revision=126078
|
|
|
|
|
|
|
| |
Approved by: jake, scottl (mentor)
Notes:
svn path=/head/; revision=125475
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
thread being waken up. The thread waken up can run at a priority as
high as after tsleep().
- Replace selwakeup()s with selwakeuppri()s and pass appropriate
priorities.
- Add cv_broadcastpri() which raises the priority of the broadcast
threads. Used by selwakeuppri() if collision occurs.
Not objected in: -arch, -current
Notes:
svn path=/head/; revision=122352
|
|
|
|
|
|
|
| |
code. Convert remaining console drivers and hope for the best.
Notes:
svn path=/head/; revision=120491
|
|
|
|
|
|
|
| |
Also some minor style cleanups.
Notes:
svn path=/head/; revision=119419
|
|
|
|
| |
Notes:
svn path=/head/; revision=119338
|
|
|
|
| |
Notes:
svn path=/head/; revision=112875
|
|
|
|
|
|
|
|
|
|
|
| |
is more robust and prevents the hijacking of /dev/console for the typical
mistake.
Remove unneeded MAJOR_AUTO uses, it is only needed explicitly now if the
driver source has cross-branch compatibility to old releases.
Notes:
svn path=/head/; revision=112037
|
|
|
|
|
|
|
| |
Ditch the D_KQFILTER flag which was used to prevent calling NULL pointers.
Notes:
svn path=/head/; revision=111821
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
branches:
Initialize struct cdevsw using C99 sparse initializtion and remove
all initializations to default values.
This patch is automatically generated and has been tested by compiling
LINT with all the fields in struct cdevsw in reverse order on alpha,
sparc64 and i386.
Approved by: re(scottl)
Notes:
svn path=/head/; revision=111815
|
|
|
|
| |
Notes:
svn path=/head/; revision=111656
|
|
|
|
|
|
|
|
|
|
|
|
| |
dev_t to the method functions.
The dev_t can still be found at struct consdev *->cn_dev.
Add a void *cn_arg element to struct consdev which the drivers can use
for retrieving their softc.
Notes:
svn path=/head/; revision=111194
|
|
|
|
|
|
|
|
|
|
|
|
| |
the sabtty device to create its description so that they will be
unique for machines with multiple sab chips.
This fixes a panic on machines with an rsc card.
Tested by: obrien (e250)
Notes:
svn path=/head/; revision=109945
|
|
|
|
|
|
|
| |
in the prom but no keyboard is plugged in.
Notes:
svn path=/head/; revision=109844
|
|
|
|
|
|
|
| |
it manually.
Notes:
svn path=/head/; revision=108918
|
|
|
|
|
|
|
|
|
|
| |
- Fix some bogosity with mixing unit numbers and channels, which would only
work for one instance of the device.
- Use a simpler scheme for input and output queueing.
- Use db_alt_break.
Notes:
svn path=/head/; revision=108698
|
|
|
|
|
|
|
| |
Submitted by: marius@alchemy.franken.de
Notes:
svn path=/head/; revision=108456
|
|
|
|
|
|
|
|
|
|
| |
reset the chip on open if we're not the console.
This fixes running a getty on ttya or ttyb if console input and output
devices are screen.
Notes:
svn path=/head/; revision=107042
|
|
|
|
|
|
|
| |
delay in the right place to flush output before switching consoles.
Notes:
svn path=/head/; revision=107038
|
|
|
|
|
|
|
|
|
|
|
| |
trigger a breakpoint with this chip.
- Fiddle the right bits in the cn input and output routines to disable port
interrupts and enable visibility of the masked interrupt status bits.
- Register a shutdown final event handler to put the chip back in the mode
that the prom expects.
Notes:
svn path=/head/; revision=107016
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Get the initial mode from the prom settings and don't clobber the mode
on open.
- Copy output into an internal ring buffer instead of accessing the tty
outq directly in the interrupt handler. This fixes a problem where
garbage would show up in the output stream.
- Reset the console port completely and reprogram all the parameters
before enabling it. This fixes seemingly random hangs on startup
when using a fast interrupt handler.
- Add minimal locking in place of spls.
- Remove dead code and minor cleanups.
Notes:
svn path=/head/; revision=103091
|
|
|
|
| |
Notes:
svn path=/head/; revision=101326
|
|
sun ultras.
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=101325
|