#include <sys/param.h>
#include <sys/device.h>
#include <sys/reboot.h>
#include <sys/systm.h>
#if defined(NFSCLIENT)
#include <net/if.h>
#include <net/if_types.h>
#include <netinet/in.h>
#include <netinet/if_ether.h>
#endif
void
cpu_configure(void)
{
splhigh();
softintr_init();
config_rootfound("mainbus", NULL);
cold = 0;
spl0();
}
void
diskconf(void)
{
#if defined(NFSCLIENT)
extern uint8_t *bootmac;
dev_t tmpdev = NODEV;
#endif
struct device *bootdv = NULL;
int part = 0;
#if defined(NFSCLIENT)
if (bootmac) {
struct ifnet *ifp;
TAILQ_FOREACH(ifp, &ifnetlist, if_list) {
if (ifp->if_type == IFT_ETHER &&
memcmp(bootmac, ((struct arpcom *)ifp)->ac_enaddr,
ETHER_ADDR_LEN) == 0)
break;
}
if (ifp)
bootdv = parsedisk(ifp->if_xname, strlen(ifp->if_xname),
0, &tmpdev);
}
#endif
setroot(bootdv, part, RB_USERREQ);
}
void
device_register(struct device *dev, void *aux)
{
}
const struct nam2blk nam2blk[] = {
{ "vnd", 1 },
{ "rd", 2 },
{ "sd", 3 },
{ "cd", 4 },
{ "wd", 5 },
{ NULL, -1 }
};