Merge changes from sys/i386/isa/mse.c 1.56 and other tweaks for KSE

Reviewed by: julian, kde, jhb
This commit is contained in:
Warner Losh 2001-09-14 04:34:54 +00:00
parent e26dcaf81e
commit e8b6d44e89
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83426

View File

@ -457,11 +457,11 @@ mse_detach(dev)
* Exclusive open the mouse, initialize it and enable interrupts.
*/
static int
mseopen(dev, flags, fmt, p)
mseopen(dev, flags, fmt, td)
dev_t dev;
int flags;
int fmt;
struct proc *p;
struct thread *td;
{
mse_softc_t *sc;
int s;
@ -497,11 +497,11 @@ mseopen(dev, flags, fmt, p)
* mseclose: just turn off mouse innterrupts.
*/
static int
mseclose(dev, flags, fmt, p)
mseclose(dev, flags, fmt, td)
dev_t dev;
int flags;
int fmt;
struct proc *p;
struct thread *td;
{
mse_softc_t *sc = devclass_get_softc(mse_devclass, MSE_UNIT(dev));
int s;
@ -588,12 +588,12 @@ mseread(dev, uio, ioflag)
* mseioctl: process ioctl commands.
*/
static int
mseioctl(dev, cmd, addr, flag, p)
mseioctl(dev, cmd, addr, flag, td)
dev_t dev;
u_long cmd;
caddr_t addr;
int flag;
struct proc *p;
struct thread *td;
{
mse_softc_t *sc = devclass_get_softc(mse_devclass, MSE_UNIT(dev));
mousestatus_t status;
@ -705,10 +705,10 @@ mseioctl(dev, cmd, addr, flag, p)
* msepoll: check for mouse input to be processed.
*/
static int
msepoll(dev, events, p)
msepoll(dev, events, td)
dev_t dev;
int events;
struct proc *p;
struct thread *td;
{
mse_softc_t *sc = devclass_get_softc(mse_devclass, MSE_UNIT(dev));
int s;
@ -725,7 +725,7 @@ msepoll(dev, events, p)
* Since this is an exclusive open device, any previous
* proc pointer is trash now, so we can just assign it.
*/
selrecord(p, &sc->sc_selp);
selrecord(td, &sc->sc_selp);
}
}
splx(s);