clang-format
This commit is contained in:
@@ -38,29 +38,27 @@
|
||||
#include "autoconf.h"
|
||||
|
||||
/* Lowest revision we support */
|
||||
#define LOW_VERSION 1
|
||||
#define LOW_VERSION 1
|
||||
|
||||
struct emu_softc *
|
||||
attach_emu_to_lamebus(int emuno, struct lamebus_softc *sc)
|
||||
{
|
||||
struct emu_softc *es;
|
||||
int slot = lamebus_probe(sc, LB_VENDOR_CS161, LBCS161_EMUFS,
|
||||
LOW_VERSION, NULL);
|
||||
if (slot < 0) {
|
||||
return NULL;
|
||||
}
|
||||
struct emu_softc *attach_emu_to_lamebus(int emuno, struct lamebus_softc *sc) {
|
||||
struct emu_softc *es;
|
||||
int slot =
|
||||
lamebus_probe(sc, LB_VENDOR_CS161, LBCS161_EMUFS, LOW_VERSION, NULL);
|
||||
if (slot < 0) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
es = kmalloc(sizeof(struct emu_softc));
|
||||
if (es==NULL) {
|
||||
return NULL;
|
||||
}
|
||||
es = kmalloc(sizeof(struct emu_softc));
|
||||
if (es == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
es->e_busdata = sc;
|
||||
es->e_buspos = slot;
|
||||
es->e_unit = emuno;
|
||||
es->e_busdata = sc;
|
||||
es->e_buspos = slot;
|
||||
es->e_unit = emuno;
|
||||
|
||||
lamebus_mark(sc, slot);
|
||||
lamebus_attach_interrupt(sc, slot, es, emu_irq);
|
||||
lamebus_mark(sc, slot);
|
||||
lamebus_attach_interrupt(sc, slot, es, emu_irq);
|
||||
|
||||
return es;
|
||||
return es;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user