Add MODULE_DEPENDS for cam, pci, mca, eisa and isa where needed.
PR: 106543 MFC after: 3 days
This commit is contained in:
parent
6b037352d0
commit
b3d93fd0c9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=165102
@ -82,6 +82,8 @@ static driver_t aac_pci_driver = {
|
||||
static devclass_t aac_devclass;
|
||||
|
||||
DRIVER_MODULE(aac, pci, aac_pci_driver, aac_devclass, 0, 0);
|
||||
MODULE_DEPEND(aac, pci, 1, 1, 1);
|
||||
|
||||
|
||||
struct aac_ident
|
||||
{
|
||||
|
@ -351,3 +351,4 @@ static driver_t adv_eisa_driver = {
|
||||
|
||||
static devclass_t adv_eisa_devclass;
|
||||
DRIVER_MODULE(adv, eisa, adv_eisa_driver, adv_eisa_devclass, 0, 0);
|
||||
MODULE_DEPEND(adv, eisa, 1, 1, 1);
|
||||
|
@ -430,3 +430,4 @@ static driver_t adv_isa_driver = {
|
||||
|
||||
static devclass_t adv_isa_devclass;
|
||||
DRIVER_MODULE(adv, isa, adv_isa_driver, adv_isa_devclass, 0, 0);
|
||||
MODULE_DEPEND(adv, isa, 1, 1, 1);
|
||||
|
@ -332,3 +332,4 @@ static driver_t adv_pci_driver = {
|
||||
|
||||
static devclass_t adv_pci_devclass;
|
||||
DRIVER_MODULE(adv, pci, adv_pci_driver, adv_pci_devclass, 0, 0);
|
||||
MODULE_DEPEND(adv, pci, 1, 1, 1);
|
||||
|
@ -53,6 +53,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/lock.h>
|
||||
#include <sys/module.h>
|
||||
#include <sys/mutex.h>
|
||||
|
||||
#include <machine/bus.h>
|
||||
@ -1443,3 +1444,4 @@ adv_attach(adv)
|
||||
xpt_action((union ccb *)&csa);
|
||||
return (0);
|
||||
}
|
||||
MODULE_DEPEND(adv, cam, 1, 1, 1);
|
||||
|
@ -146,6 +146,7 @@ static driver_t adw_pci_driver = {
|
||||
static devclass_t adw_devclass;
|
||||
|
||||
DRIVER_MODULE(adw, pci, adw_pci_driver, adw_devclass, 0, 0);
|
||||
MODULE_DEPEND(adw, pci, 1, 1, 1);
|
||||
|
||||
static __inline u_int64_t
|
||||
adw_compose_id(u_int device, u_int vendor, u_int subdevice, u_int subvendor)
|
||||
|
@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/lock.h>
|
||||
#include <sys/module.h>
|
||||
#include <sys/mutex.h>
|
||||
#include <sys/bus.h>
|
||||
|
||||
@ -1580,3 +1581,5 @@ adw_handle_bus_reset(struct adw_softc *adw, int initiated)
|
||||
xpt_async(AC_BUS_RESET, adw->path, NULL);
|
||||
adw->last_reset = CAM_SCSI_BUS_RESET;
|
||||
}
|
||||
MODULE_DEPEND(adw, cam, 1, 1, 1);
|
||||
|
||||
|
@ -66,6 +66,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/lock.h>
|
||||
#include <sys/module.h>
|
||||
#include <sys/mutex.h>
|
||||
|
||||
#include <machine/bus.h>
|
||||
@ -1872,3 +1873,4 @@ aha_detach(struct aha_softc *aha)
|
||||
cam_sim_free(aha->sim, /*free_devq*/TRUE);
|
||||
return (0);
|
||||
}
|
||||
MODULE_DEPEND(aha, cam, 1, 1, 1);
|
||||
|
@ -374,4 +374,4 @@ static driver_t aha_isa_driver = {
|
||||
static devclass_t aha_devclass;
|
||||
|
||||
DRIVER_MODULE(aha, isa, aha_isa_driver, aha_devclass, 0, 0);
|
||||
MODULE_DEPEND(aha, cam, 1, 1, 1);
|
||||
MODULE_DEPEND(aha, isa, 1, 1, 1);
|
||||
|
@ -229,4 +229,4 @@ static driver_t aha_mca_driver = {
|
||||
static devclass_t aha_devclass;
|
||||
|
||||
DRIVER_MODULE(aha, mca, aha_mca_driver, aha_devclass, 0, 0);
|
||||
MODULE_DEPEND(aha, cam, 1, 1, 1);
|
||||
MODULE_DEPEND(aha, mca, 1, 1, 1);
|
||||
|
@ -1366,3 +1366,5 @@ static driver_t ahb_eisa_driver = {
|
||||
static devclass_t ahb_devclass;
|
||||
|
||||
DRIVER_MODULE(ahb, eisa, ahb_eisa_driver, ahb_devclass, 0, 0);
|
||||
MODULE_DEPEND(ahb, eisa, 1, 1, 1);
|
||||
MODULE_DEPEND(ahb, cam, 1, 1, 1);
|
||||
|
@ -2534,4 +2534,5 @@ static driver_t amd_driver = {
|
||||
|
||||
static devclass_t amd_devclass;
|
||||
DRIVER_MODULE(amd, pci, amd_driver, amd_devclass, 0, 0);
|
||||
MODULE_DEPEND(amd, pci, 1, 1, 1);
|
||||
MODULE_DEPEND(amd, cam, 1, 1, 1);
|
||||
|
@ -119,6 +119,8 @@ static driver_t amr_pci_driver = {
|
||||
|
||||
static devclass_t amr_devclass;
|
||||
DRIVER_MODULE(amr, pci, amr_pci_driver, amr_devclass, 0, 0);
|
||||
MODULE_DEPEND(amr, pci, 1, 1, 1);
|
||||
MODULE_DEPEND(amr, cam, 1, 1, 1);
|
||||
|
||||
static struct amr_ident
|
||||
{
|
||||
|
@ -198,6 +198,8 @@ static driver_t arcmsr_driver={
|
||||
|
||||
static devclass_t arcmsr_devclass;
|
||||
DRIVER_MODULE(arcmsr,pci,arcmsr_driver,arcmsr_devclass,0,0);
|
||||
MODULE_DEPEND(arcmsr, pci, 1, 1, 1);
|
||||
MODULE_DEPEND(arcmsr, cam, 1, 1, 1);
|
||||
|
||||
#if __FreeBSD_version >= 502010
|
||||
static struct cdevsw arcmsr_cdevsw={
|
||||
|
@ -427,6 +427,8 @@ static driver_t asr_driver = {
|
||||
|
||||
static devclass_t asr_devclass;
|
||||
DRIVER_MODULE(asr, pci, asr_driver, asr_devclass, 0, 0);
|
||||
MODULE_DEPEND(asr, pci, 1, 1, 1);
|
||||
MODULE_DEPEND(asr, cam, 1, 1, 1);
|
||||
|
||||
/*
|
||||
* devsw for asr hba driver
|
||||
|
@ -47,6 +47,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/lock.h>
|
||||
#include <sys/module.h>
|
||||
#include <sys/mutex.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/bus.h>
|
||||
@ -2424,3 +2425,5 @@ bttimeout(void *arg)
|
||||
splx(s);
|
||||
}
|
||||
|
||||
MODULE_VERSION(bt, 1);
|
||||
MODULE_DEPEND(bt, cam, 1, 1, 1);
|
||||
|
@ -354,3 +354,4 @@ static driver_t bt_eisa_driver = {
|
||||
static devclass_t bt_devclass;
|
||||
|
||||
DRIVER_MODULE(bt, eisa, bt_eisa_driver, bt_devclass, 0, 0);
|
||||
MODULE_DEPEND(bt, eisa, 1, 1, 1);
|
||||
|
@ -353,3 +353,4 @@ static driver_t bt_isa_driver = {
|
||||
static devclass_t bt_devclass;
|
||||
|
||||
DRIVER_MODULE(bt, isa, bt_isa_driver, bt_devclass, 0, 0);
|
||||
MODULE_DEPEND(bt, isa, 1, 1, 1);
|
||||
|
@ -338,3 +338,4 @@ static driver_t bt_mca_driver = {
|
||||
static devclass_t bt_devclass;
|
||||
|
||||
DRIVER_MODULE(bt, mca, bt_mca_driver, bt_devclass, 0, 0);
|
||||
MODULE_DEPEND(bt, mca, 1, 1, 1);
|
||||
|
@ -235,3 +235,4 @@ static driver_t bt_pci_driver = {
|
||||
static devclass_t bt_devclass;
|
||||
|
||||
DRIVER_MODULE(bt, pci, bt_pci_driver, bt_devclass, 0, 0);
|
||||
MODULE_DEPEND(bt, pci, 1, 1, 1);
|
||||
|
@ -212,3 +212,5 @@ static driver_t dpt_eisa_driver = {
|
||||
};
|
||||
|
||||
DRIVER_MODULE(dpt, eisa, dpt_eisa_driver, dpt_devclass, 0, 0);
|
||||
MODULE_DEPEND(dpt, eisa, 1, 1, 1);
|
||||
MODULE_DEPEND(dpt, cam, 1, 1, 1);
|
||||
|
@ -268,3 +268,5 @@ static driver_t dpt_isa_driver = {
|
||||
};
|
||||
|
||||
DRIVER_MODULE(dpt, isa, dpt_isa_driver, dpt_devclass, 0, 0);
|
||||
MODULE_DEPEND(dpt, isa, 1, 1, 1);
|
||||
MODULE_DEPEND(dpt, cam, 1, 1, 1);
|
||||
|
@ -195,3 +195,5 @@ static driver_t dpt_pci_driver = {
|
||||
};
|
||||
|
||||
DRIVER_MODULE(dpt, pci, dpt_pci_driver, dpt_devclass, 0, 0);
|
||||
MODULE_DEPEND(dpt, pci, 1, 1, 1);
|
||||
MODULE_DEPEND(dpt, cam, 1, 1, 1);
|
||||
|
@ -135,6 +135,7 @@ static driver_t esp_dma_driver = {
|
||||
};
|
||||
|
||||
DRIVER_MODULE(esp, dma, esp_dma_driver, esp_devclass, 0, 0);
|
||||
MODULE_DEPEND(esp, dma, 1, 1, 1);
|
||||
|
||||
static device_method_t esp_sbus_methods[] = {
|
||||
DEVMETHOD(device_probe, esp_probe),
|
||||
@ -152,6 +153,9 @@ static driver_t esp_sbus_driver = {
|
||||
};
|
||||
|
||||
DRIVER_MODULE(esp, sbus, esp_sbus_driver, esp_devclass, 0, 0);
|
||||
MODULE_DEPEND(esp, sbus, 1, 1, 1);
|
||||
|
||||
MODULE_DEPEND(esp, cam, 1, 1, 1);
|
||||
|
||||
/*
|
||||
* Functions and the switch for the MI code.
|
||||
|
@ -158,6 +158,8 @@ static driver_t iir_pci_driver =
|
||||
static devclass_t iir_devclass;
|
||||
|
||||
DRIVER_MODULE(iir, pci, iir_pci_driver, iir_devclass, 0, 0);
|
||||
MODULE_DEPEND(iir, pci, 1, 1, 1);
|
||||
MODULE_DEPEND(iir, cam, 1, 1, 1);
|
||||
|
||||
static int
|
||||
iir_pci_probe(device_t dev)
|
||||
|
@ -147,6 +147,8 @@ static driver_t mly_pci_driver = {
|
||||
|
||||
static devclass_t mly_devclass;
|
||||
DRIVER_MODULE(mly, pci, mly_pci_driver, mly_devclass, 0, 0);
|
||||
MODULE_DEPEND(mly, pci, 1, 1, 1);
|
||||
MODULE_DEPEND(mly, cam, 1, 1, 1);
|
||||
|
||||
static struct cdevsw mly_cdevsw = {
|
||||
.d_version = D_VERSION,
|
||||
|
@ -465,3 +465,5 @@ static driver_t vpo_driver = {
|
||||
sizeof(struct vpo_data),
|
||||
};
|
||||
DRIVER_MODULE(vpo, ppbus, vpo_driver, vpo_devclass, 0, 0);
|
||||
MODULE_DEPEND(vpo, ppbus, 1, 1, 1);
|
||||
MODULE_DEPEND(vpo, cam, 1, 1, 1);
|
||||
|
@ -3759,4 +3759,5 @@ static driver_t trm_driver = {
|
||||
|
||||
static devclass_t trm_devclass;
|
||||
DRIVER_MODULE(trm, pci, trm_driver, trm_devclass, 0, 0);
|
||||
MODULE_DEPEND(trm, pci, 1, 1, 1);
|
||||
MODULE_DEPEND(trm, cam, 1, 1, 1);
|
||||
|
@ -400,6 +400,8 @@ static driver_t wds_isa_driver = {
|
||||
static devclass_t wds_devclass;
|
||||
|
||||
DRIVER_MODULE(wds, isa, wds_isa_driver, wds_devclass, 0, 0);
|
||||
MODULE_DEPEND(wds, isa, 1, 1, 1);
|
||||
MODULE_DEPEND(wds, cam, 1, 1, 1);
|
||||
|
||||
#if WDS_ENABLE_SMALLOG==1
|
||||
#define SMALLOGSIZ 512
|
||||
|
Loading…
Reference in New Issue
Block a user