mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Removed unnecessary includes and brought up to date with ata
common code by adding lock functions.
This commit is contained in:
parent
6b267654ab
commit
8a7f89713e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109483
@ -34,13 +34,9 @@
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/disk.h>
|
||||
#include <sys/module.h>
|
||||
#include <sys/bus.h>
|
||||
#include <sys/bio.h>
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/devicestat.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <machine/stdarg.h>
|
||||
#include <machine/resource.h>
|
||||
#include <machine/bus.h>
|
||||
@ -232,6 +228,18 @@ static driver_t ata_iobus_sub_driver = {
|
||||
|
||||
DRIVER_MODULE(ata, ataiobus, ata_iobus_sub_driver, ata_devclass, 0, 0);
|
||||
|
||||
static int
|
||||
ata_iobus_intrnoop(struct ata_channel *ch)
|
||||
{
|
||||
|
||||
return (1);
|
||||
}
|
||||
|
||||
static void
|
||||
ata_iobus_locknoop(struct ata_channel *ch, int type)
|
||||
{
|
||||
}
|
||||
|
||||
static int
|
||||
ata_iobus_sub_probe(device_t dev)
|
||||
{
|
||||
@ -239,6 +247,9 @@ ata_iobus_sub_probe(device_t dev)
|
||||
|
||||
/* Only a single unit per controller thus far */
|
||||
ch->unit = 0;
|
||||
ch->flags = (ATA_USE_16BIT|ATA_NO_SLAVE);
|
||||
ch->intr_func = ata_iobus_intrnoop;
|
||||
ch->lock_func = ata_iobus_locknoop;
|
||||
|
||||
return ata_probe(dev);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user