2016-05-15 22:36:55 +00:00
|
|
|
/*-
|
|
|
|
* Copyright (c) 2016 Jared McNeill <jmcneill@invisible.ca>
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
|
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
|
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*
|
|
|
|
* $FreeBSD$
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Allwinner secure ID controller
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
__FBSDID("$FreeBSD$");
|
|
|
|
|
2016-07-20 11:23:06 +00:00
|
|
|
#include <sys/endian.h>
|
2016-05-15 22:36:55 +00:00
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/systm.h>
|
|
|
|
#include <sys/bus.h>
|
|
|
|
#include <sys/rman.h>
|
|
|
|
#include <sys/kernel.h>
|
2018-01-07 03:31:55 +00:00
|
|
|
#include <sys/lock.h>
|
|
|
|
#include <sys/mutex.h>
|
2016-05-15 22:36:55 +00:00
|
|
|
#include <sys/module.h>
|
2016-07-20 11:23:06 +00:00
|
|
|
#include <sys/sysctl.h>
|
2016-05-15 22:36:55 +00:00
|
|
|
#include <machine/bus.h>
|
|
|
|
|
|
|
|
#include <dev/ofw/ofw_bus.h>
|
|
|
|
#include <dev/ofw/ofw_bus_subr.h>
|
|
|
|
|
|
|
|
#include <arm/allwinner/aw_sid.h>
|
|
|
|
|
2018-08-06 05:35:24 +00:00
|
|
|
#include "nvmem_if.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Starting at least from sun8iw6 (A83T) EFUSE starts at 0x200
|
|
|
|
* There is 3 registers in the low area to read/write protected EFUSE.
|
|
|
|
*/
|
2018-01-07 03:31:55 +00:00
|
|
|
#define SID_PRCTL 0x40
|
|
|
|
#define SID_PRCTL_OFFSET_MASK 0xff
|
|
|
|
#define SID_PRCTL_OFFSET(n) (((n) & SID_PRCTL_OFFSET_MASK) << 16)
|
|
|
|
#define SID_PRCTL_LOCK (0xac << 8)
|
|
|
|
#define SID_PRCTL_READ (0x01 << 1)
|
|
|
|
#define SID_PRCTL_WRITE (0x01 << 0)
|
|
|
|
#define SID_PRKEY 0x50
|
|
|
|
#define SID_RDKEY 0x60
|
|
|
|
|
2018-08-06 05:35:24 +00:00
|
|
|
#define EFUSE_OFFSET 0x200
|
|
|
|
#define EFUSE_NAME_SIZE 32
|
|
|
|
#define EFUSE_DESC_SIZE 64
|
|
|
|
|
|
|
|
struct aw_sid_efuse {
|
|
|
|
char name[EFUSE_NAME_SIZE];
|
|
|
|
char desc[EFUSE_DESC_SIZE];
|
|
|
|
bus_size_t base;
|
|
|
|
bus_size_t offset;
|
|
|
|
uint32_t size;
|
|
|
|
enum aw_sid_fuse_id id;
|
|
|
|
bool public;
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct aw_sid_efuse a10_efuses[] = {
|
|
|
|
{
|
|
|
|
.name = "rootkey",
|
|
|
|
.desc = "Root Key or ChipID",
|
|
|
|
.offset = 0x0,
|
|
|
|
.size = 16,
|
|
|
|
.id = AW_SID_FUSE_ROOTKEY,
|
|
|
|
.public = true,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct aw_sid_efuse a64_efuses[] = {
|
|
|
|
{
|
|
|
|
.name = "rootkey",
|
|
|
|
.desc = "Root Key or ChipID",
|
|
|
|
.base = EFUSE_OFFSET,
|
|
|
|
.offset = 0x00,
|
|
|
|
.size = 16,
|
|
|
|
.id = AW_SID_FUSE_ROOTKEY,
|
|
|
|
.public = true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.name = "ths-calib",
|
|
|
|
.desc = "Thermal Sensor Calibration Data",
|
|
|
|
.base = EFUSE_OFFSET,
|
|
|
|
.offset = 0x34,
|
|
|
|
.size = 6,
|
|
|
|
.id = AW_SID_FUSE_THSSENSOR,
|
|
|
|
.public = true,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct aw_sid_efuse a83t_efuses[] = {
|
|
|
|
{
|
|
|
|
.name = "rootkey",
|
|
|
|
.desc = "Root Key or ChipID",
|
|
|
|
.base = EFUSE_OFFSET,
|
|
|
|
.offset = 0x00,
|
|
|
|
.size = 16,
|
|
|
|
.id = AW_SID_FUSE_ROOTKEY,
|
|
|
|
.public = true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.name = "ths-calib",
|
|
|
|
.desc = "Thermal Sensor Calibration Data",
|
|
|
|
.base = EFUSE_OFFSET,
|
|
|
|
.offset = 0x34,
|
|
|
|
.size = 8,
|
|
|
|
.id = AW_SID_FUSE_THSSENSOR,
|
|
|
|
.public = true,
|
|
|
|
},
|
|
|
|
};
|
2016-05-15 22:36:55 +00:00
|
|
|
|
2018-08-06 05:35:24 +00:00
|
|
|
static struct aw_sid_efuse h3_efuses[] = {
|
|
|
|
{
|
|
|
|
.name = "rootkey",
|
|
|
|
.desc = "Root Key or ChipID",
|
|
|
|
.base = EFUSE_OFFSET,
|
|
|
|
.offset = 0x00,
|
|
|
|
.size = 16,
|
|
|
|
.id = AW_SID_FUSE_ROOTKEY,
|
|
|
|
.public = true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.name = "ths-calib",
|
|
|
|
.desc = "Thermal Sensor Calibration Data",
|
|
|
|
.base = EFUSE_OFFSET,
|
|
|
|
.offset = 0x34,
|
|
|
|
.size = 2,
|
|
|
|
.id = AW_SID_FUSE_THSSENSOR,
|
|
|
|
.public = false,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct aw_sid_efuse h5_efuses[] = {
|
|
|
|
{
|
|
|
|
.name = "rootkey",
|
|
|
|
.desc = "Root Key or ChipID",
|
|
|
|
.base = EFUSE_OFFSET,
|
|
|
|
.offset = 0x00,
|
|
|
|
.size = 16,
|
|
|
|
.id = AW_SID_FUSE_ROOTKEY,
|
|
|
|
.public = true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.name = "ths-calib",
|
|
|
|
.desc = "Thermal Sensor Calibration Data",
|
|
|
|
.base = EFUSE_OFFSET,
|
|
|
|
.offset = 0x34,
|
|
|
|
.size = 4,
|
|
|
|
.id = AW_SID_FUSE_THSSENSOR,
|
|
|
|
.public = true,
|
|
|
|
},
|
|
|
|
};
|
2016-09-03 15:22:50 +00:00
|
|
|
|
2017-12-31 06:44:15 +00:00
|
|
|
struct aw_sid_conf {
|
2018-08-06 05:35:24 +00:00
|
|
|
struct aw_sid_efuse *efuses;
|
|
|
|
size_t nfuses;
|
2017-12-31 06:44:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct aw_sid_conf a10_conf = {
|
2018-08-06 05:35:24 +00:00
|
|
|
.efuses = a10_efuses,
|
|
|
|
.nfuses = nitems(a10_efuses),
|
2017-12-31 06:44:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct aw_sid_conf a20_conf = {
|
2018-08-06 05:35:24 +00:00
|
|
|
.efuses = a10_efuses,
|
|
|
|
.nfuses = nitems(a10_efuses),
|
2017-12-31 06:44:15 +00:00
|
|
|
};
|
|
|
|
|
2017-12-31 22:35:32 +00:00
|
|
|
static const struct aw_sid_conf a64_conf = {
|
2018-08-06 05:35:24 +00:00
|
|
|
.efuses = a64_efuses,
|
|
|
|
.nfuses = nitems(a64_efuses),
|
2017-12-31 22:35:32 +00:00
|
|
|
};
|
|
|
|
|
2017-12-31 06:44:15 +00:00
|
|
|
static const struct aw_sid_conf a83t_conf = {
|
2018-08-06 05:35:24 +00:00
|
|
|
.efuses = a83t_efuses,
|
|
|
|
.nfuses = nitems(a83t_efuses),
|
2016-07-20 11:23:06 +00:00
|
|
|
};
|
|
|
|
|
2018-01-07 04:59:28 +00:00
|
|
|
static const struct aw_sid_conf h3_conf = {
|
2018-08-06 05:35:24 +00:00
|
|
|
.efuses = h3_efuses,
|
|
|
|
.nfuses = nitems(h3_efuses),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct aw_sid_conf h5_conf = {
|
|
|
|
.efuses = h5_efuses,
|
|
|
|
.nfuses = nitems(h5_efuses),
|
2018-01-07 04:59:28 +00:00
|
|
|
};
|
|
|
|
|
2016-05-15 22:36:55 +00:00
|
|
|
static struct ofw_compat_data compat_data[] = {
|
2017-12-31 06:44:15 +00:00
|
|
|
{ "allwinner,sun4i-a10-sid", (uintptr_t)&a10_conf},
|
|
|
|
{ "allwinner,sun7i-a20-sid", (uintptr_t)&a20_conf},
|
2017-12-31 22:35:32 +00:00
|
|
|
{ "allwinner,sun50i-a64-sid", (uintptr_t)&a64_conf},
|
2017-12-31 06:44:15 +00:00
|
|
|
{ "allwinner,sun8i-a83t-sid", (uintptr_t)&a83t_conf},
|
2018-01-07 04:59:28 +00:00
|
|
|
{ "allwinner,sun8i-h3-sid", (uintptr_t)&h3_conf},
|
2018-08-06 05:35:24 +00:00
|
|
|
{ "allwinner,sun50i-h5-sid", (uintptr_t)&h5_conf},
|
2016-05-15 22:36:55 +00:00
|
|
|
{ NULL, 0 }
|
|
|
|
};
|
|
|
|
|
|
|
|
struct aw_sid_softc {
|
2018-04-06 15:17:09 +00:00
|
|
|
device_t sid_dev;
|
2016-05-15 22:36:55 +00:00
|
|
|
struct resource *res;
|
2017-12-31 06:44:15 +00:00
|
|
|
struct aw_sid_conf *sid_conf;
|
2018-01-07 03:31:55 +00:00
|
|
|
struct mtx prctl_mtx;
|
2016-05-15 22:36:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static struct aw_sid_softc *aw_sid_sc;
|
|
|
|
|
|
|
|
static struct resource_spec aw_sid_spec[] = {
|
|
|
|
{ SYS_RES_MEMORY, 0, RF_ACTIVE },
|
|
|
|
{ -1, 0 }
|
|
|
|
};
|
|
|
|
|
2018-08-06 05:35:24 +00:00
|
|
|
#define RD1(sc, reg) bus_read_1((sc)->res, (reg))
|
2016-05-15 22:36:55 +00:00
|
|
|
#define RD4(sc, reg) bus_read_4((sc)->res, (reg))
|
|
|
|
#define WR4(sc, reg, val) bus_write_4((sc)->res, (reg), (val))
|
|
|
|
|
2016-07-20 11:23:06 +00:00
|
|
|
static int aw_sid_sysctl(SYSCTL_HANDLER_ARGS);
|
|
|
|
|
2016-05-15 22:36:55 +00:00
|
|
|
static int
|
|
|
|
aw_sid_probe(device_t dev)
|
|
|
|
{
|
|
|
|
if (!ofw_bus_status_okay(dev))
|
|
|
|
return (ENXIO);
|
|
|
|
|
|
|
|
if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0)
|
|
|
|
return (ENXIO);
|
|
|
|
|
|
|
|
device_set_desc(dev, "Allwinner Secure ID Controller");
|
|
|
|
return (BUS_PROBE_DEFAULT);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
aw_sid_attach(device_t dev)
|
|
|
|
{
|
|
|
|
struct aw_sid_softc *sc;
|
2018-08-06 05:35:24 +00:00
|
|
|
phandle_t node;
|
|
|
|
int i;
|
2016-05-15 22:36:55 +00:00
|
|
|
|
2018-08-06 05:35:24 +00:00
|
|
|
node = ofw_bus_get_node(dev);
|
2016-05-15 22:36:55 +00:00
|
|
|
sc = device_get_softc(dev);
|
2018-04-06 15:17:09 +00:00
|
|
|
sc->sid_dev = dev;
|
2016-05-15 22:36:55 +00:00
|
|
|
|
|
|
|
if (bus_alloc_resources(dev, aw_sid_spec, &sc->res) != 0) {
|
|
|
|
device_printf(dev, "cannot allocate resources for device\n");
|
|
|
|
return (ENXIO);
|
|
|
|
}
|
|
|
|
|
2018-01-07 03:31:55 +00:00
|
|
|
mtx_init(&sc->prctl_mtx, device_get_nameunit(dev), NULL, MTX_DEF);
|
2017-12-31 06:44:15 +00:00
|
|
|
sc->sid_conf = (struct aw_sid_conf *)ofw_bus_search_compatible(dev, compat_data)->ocd_data;
|
2018-01-07 03:31:55 +00:00
|
|
|
aw_sid_sc = sc;
|
2016-09-03 15:22:50 +00:00
|
|
|
|
2018-08-06 05:35:24 +00:00
|
|
|
/* Register ourself so device can resolve who we are */
|
|
|
|
OF_device_register_xref(OF_xref_from_node(node), dev);
|
2016-09-03 15:22:50 +00:00
|
|
|
|
2018-08-06 05:35:24 +00:00
|
|
|
for (i = 0; i < sc->sid_conf->nfuses ;i++) {\
|
|
|
|
SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev),
|
|
|
|
SYSCTL_CHILDREN(device_get_sysctl_tree(dev)),
|
|
|
|
OID_AUTO, sc->sid_conf->efuses[i].name,
|
|
|
|
CTLTYPE_STRING | CTLFLAG_RD,
|
|
|
|
dev, sc->sid_conf->efuses[i].id, aw_sid_sysctl,
|
|
|
|
"A", sc->sid_conf->efuses[i].desc);
|
|
|
|
}
|
2016-05-15 22:36:55 +00:00
|
|
|
return (0);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2018-08-06 05:35:24 +00:00
|
|
|
aw_sid_get_fuse(enum aw_sid_fuse_id id, uint8_t *out, uint32_t *size)
|
2016-05-15 22:36:55 +00:00
|
|
|
{
|
|
|
|
struct aw_sid_softc *sc;
|
2018-08-06 05:35:24 +00:00
|
|
|
uint32_t val;
|
|
|
|
int i, j;
|
2016-05-15 22:36:55 +00:00
|
|
|
|
|
|
|
sc = aw_sid_sc;
|
|
|
|
if (sc == NULL)
|
|
|
|
return (ENXIO);
|
|
|
|
|
2018-08-06 05:35:24 +00:00
|
|
|
for (i = 0; i < sc->sid_conf->nfuses; i++)
|
|
|
|
if (id == sc->sid_conf->efuses[i].id)
|
|
|
|
break;
|
|
|
|
|
|
|
|
if (i == sc->sid_conf->nfuses)
|
|
|
|
return (ENOENT);
|
|
|
|
|
|
|
|
if (*size != sc->sid_conf->efuses[i].size) {
|
|
|
|
*size = sc->sid_conf->efuses[i].size;
|
|
|
|
return (ENOMEM);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (out == NULL)
|
|
|
|
return (ENOMEM);
|
|
|
|
|
|
|
|
if (sc->sid_conf->efuses[i].public == false)
|
|
|
|
mtx_lock(&sc->prctl_mtx);
|
|
|
|
for (j = 0; j < sc->sid_conf->efuses[i].size; j += 4) {
|
|
|
|
if (sc->sid_conf->efuses[i].public == false) {
|
|
|
|
val = SID_PRCTL_OFFSET(sc->sid_conf->efuses[i].offset + j) |
|
|
|
|
SID_PRCTL_LOCK |
|
|
|
|
SID_PRCTL_READ;
|
|
|
|
WR4(sc, SID_PRCTL, val);
|
|
|
|
/* Read bit will be cleared once read has concluded */
|
|
|
|
while (RD4(sc, SID_PRCTL) & SID_PRCTL_READ)
|
|
|
|
continue;
|
|
|
|
val = RD4(sc, SID_RDKEY);
|
|
|
|
} else
|
|
|
|
val = RD4(sc, sc->sid_conf->efuses[i].base +
|
|
|
|
sc->sid_conf->efuses[i].offset + j);
|
|
|
|
out[j] = val & 0xFF;
|
|
|
|
if (j + 1 < *size)
|
|
|
|
out[j + 1] = (val & 0xFF00) >> 8;
|
|
|
|
if (j + 2 < *size)
|
|
|
|
out[j + 2] = (val & 0xFF0000) >> 16;
|
|
|
|
if (j + 3 < *size)
|
|
|
|
out[j + 3] = (val & 0xFF000000) >> 24;
|
2018-04-06 15:17:09 +00:00
|
|
|
}
|
2018-08-06 05:35:24 +00:00
|
|
|
if (sc->sid_conf->efuses[i].public == false)
|
|
|
|
mtx_unlock(&sc->prctl_mtx);
|
2016-05-15 22:36:55 +00:00
|
|
|
|
|
|
|
return (0);
|
|
|
|
}
|
|
|
|
|
2018-08-06 05:35:24 +00:00
|
|
|
static int
|
|
|
|
aw_sid_read(device_t dev, uint32_t offset, uint32_t size, uint8_t *buffer)
|
2016-07-20 11:23:06 +00:00
|
|
|
{
|
|
|
|
struct aw_sid_softc *sc;
|
2018-08-06 05:35:24 +00:00
|
|
|
enum aw_sid_fuse_id fuse_id = 0;
|
2016-07-20 11:23:06 +00:00
|
|
|
int i;
|
|
|
|
|
2018-08-06 05:35:24 +00:00
|
|
|
sc = device_get_softc(dev);
|
2016-07-20 11:23:06 +00:00
|
|
|
|
2018-08-06 05:35:24 +00:00
|
|
|
for (i = 0; i < sc->sid_conf->nfuses; i++)
|
|
|
|
if (offset == (sc->sid_conf->efuses[i].base +
|
|
|
|
sc->sid_conf->efuses[i].offset)) {
|
|
|
|
fuse_id = sc->sid_conf->efuses[i].id;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (fuse_id == 0)
|
|
|
|
return (ENOENT);
|
|
|
|
|
|
|
|
return (aw_sid_get_fuse(fuse_id, buffer, &size));
|
2016-07-20 11:23:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
aw_sid_sysctl(SYSCTL_HANDLER_ARGS)
|
|
|
|
{
|
2018-08-06 05:35:24 +00:00
|
|
|
struct aw_sid_softc *sc;
|
|
|
|
device_t dev = arg1;
|
|
|
|
enum aw_sid_fuse_id fuse = arg2;
|
|
|
|
uint8_t data[32];
|
|
|
|
char out[128];
|
|
|
|
uint32_t size;
|
|
|
|
int ret, i;
|
2016-07-20 11:23:06 +00:00
|
|
|
|
2018-08-06 05:35:24 +00:00
|
|
|
sc = device_get_softc(dev);
|
2016-07-20 11:23:06 +00:00
|
|
|
|
2018-08-06 05:35:24 +00:00
|
|
|
/* Get the size of the efuse data */
|
|
|
|
size = 0;
|
|
|
|
aw_sid_get_fuse(fuse, NULL, &size);
|
|
|
|
/* We now have the real size */
|
|
|
|
ret = aw_sid_get_fuse(fuse, data, &size);
|
|
|
|
if (ret != 0) {
|
|
|
|
device_printf(dev, "Cannot get fuse id %d: %d\n", fuse, ret);
|
2016-07-20 11:23:06 +00:00
|
|
|
return (ENOENT);
|
2018-08-06 05:35:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
for (i = 0; i < size; i++)
|
|
|
|
snprintf(out + (i * 2), sizeof(out) - (i * 2),
|
|
|
|
"%.2x", data[i]);
|
2016-07-20 11:23:06 +00:00
|
|
|
|
|
|
|
return sysctl_handle_string(oidp, out, sizeof(out), req);
|
|
|
|
}
|
|
|
|
|
2016-05-15 22:36:55 +00:00
|
|
|
static device_method_t aw_sid_methods[] = {
|
|
|
|
/* Device interface */
|
|
|
|
DEVMETHOD(device_probe, aw_sid_probe),
|
|
|
|
DEVMETHOD(device_attach, aw_sid_attach),
|
|
|
|
|
2018-08-06 05:35:24 +00:00
|
|
|
/* NVMEM interface */
|
|
|
|
DEVMETHOD(nvmem_read, aw_sid_read),
|
2016-05-15 22:36:55 +00:00
|
|
|
DEVMETHOD_END
|
|
|
|
};
|
|
|
|
|
|
|
|
static driver_t aw_sid_driver = {
|
|
|
|
"aw_sid",
|
|
|
|
aw_sid_methods,
|
|
|
|
sizeof(struct aw_sid_softc),
|
|
|
|
};
|
|
|
|
|
|
|
|
static devclass_t aw_sid_devclass;
|
|
|
|
|
|
|
|
EARLY_DRIVER_MODULE(aw_sid, simplebus, aw_sid_driver, aw_sid_devclass, 0, 0,
|
|
|
|
BUS_PASS_RESOURCE + BUS_PASS_ORDER_FIRST);
|
|
|
|
MODULE_VERSION(aw_sid, 1);
|