1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Whitespace cleanup.

This commit is contained in:
Matthew N. Dodd 2005-04-13 05:06:57 +00:00
parent 9cf4a5d55f
commit b1a9ec048e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144991
5 changed files with 33 additions and 33 deletions

View File

@ -100,7 +100,7 @@ ida_free(struct ida_softc *ida)
free(ida->qcbs, M_DEVBUF);
if (ida->ih != NULL)
bus_teardown_intr(ida->dev, ida->irq, ida->ih);
bus_teardown_intr(ida->dev, ida->irq, ida->ih);
if (ida->irq != NULL)
bus_release_resource(ida->dev, ida->irq_res_type,
@ -120,10 +120,10 @@ ida_free(struct ida_softc *ida)
static void
ida_dma_map_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error)
{
bus_addr_t *baddr;
bus_addr_t *baddr;
baddr = (bus_addr_t *)arg;
*baddr = segs->ds_addr;
baddr = (bus_addr_t *)arg;
*baddr = segs->ds_addr;
}
static __inline struct ida_qcb *
@ -197,7 +197,7 @@ ida_init(struct ida_softc *ida)
SLIST_INIT(&ida->free_qcbs);
STAILQ_INIT(&ida->qcb_queue);
bioq_init(&ida->bio_queue);
bioq_init(&ida->bio_queue);
ida->qcbs = (struct ida_qcb *)
malloc(IDA_QCB_MAX * sizeof(struct ida_qcb), M_DEVBUF,
@ -226,7 +226,7 @@ ida_init(struct ida_softc *ida)
/* lockarg */ &Giant,
&ida->hwqcb_dmat);
if (error)
return (ENOMEM);
return (ENOMEM);
/* DMA tag for mapping buffers into device space */
error = bus_dma_tag_create(
@ -245,17 +245,17 @@ ida_init(struct ida_softc *ida)
/* lockarg */ &Giant,
&ida->buffer_dmat);
if (error)
return (ENOMEM);
return (ENOMEM);
/* Allocation of hardware QCBs */
/* Allocation of hardware QCBs */
/* XXX allocation is rounded to hardware page size */
error = bus_dmamem_alloc(ida->hwqcb_dmat,
(void **)&ida->hwqcbs, BUS_DMA_NOWAIT, &ida->hwqcb_dmamap);
if (error)
return (ENOMEM);
return (ENOMEM);
/* And permanently map them in */
bus_dmamap_load(ida->hwqcb_dmat, ida->hwqcb_dmamap,
/* And permanently map them in */
bus_dmamap_load(ida->hwqcb_dmat, ida->hwqcb_dmamap,
ida->hwqcbs, IDA_QCB_MAX * sizeof(struct ida_hardware_qcb),
ida_dma_map_cb, &ida->hwqcb_busaddr, /*flags*/0);
@ -318,7 +318,7 @@ ida_detach(device_t dev)
struct ida_softc *ida;
int error = 0;
ida = (struct ida_softc *)device_get_softc(dev);
ida = (struct ida_softc *)device_get_softc(dev);
/*
* XXX
@ -402,8 +402,8 @@ ida_command(struct ida_softc *ida, int command, void *data, int datasize,
void
ida_submit_buf(struct ida_softc *ida, struct bio *bp)
{
bioq_insert_tail(&ida->bio_queue, bp);
ida_construct_qcb(ida);
bioq_insert_tail(&ida->bio_queue, bp);
ida_construct_qcb(ida);
ida_start(ida);
}

View File

@ -102,7 +102,7 @@ ida_v1_done(struct ida_softc *ida)
ida_outb(ida, R_EISA_LOCAL_DOORBELL, EISA_CHANNEL_CLEAR);
if (completed != 0) {
hwqcb = (struct ida_hardware_qcb *)
hwqcb = (struct ida_hardware_qcb *)
((bus_addr_t)ida->hwqcbs +
((completed & ~3) - ida->hwqcb_busaddr));
hwqcb->req.error = status;
@ -264,7 +264,7 @@ ida_eisa_probe(device_t dev)
eisa_add_iospace(dev, (io_base + IDA_EISA_IOPORT_START),
IDA_EISA_IOPORT_LEN, RESVADDR_NONE);
eisa_add_intr(dev, irq, EISA_TRIGGER_LEVEL); /* XXX ??? */
eisa_add_intr(dev, irq, EISA_TRIGGER_LEVEL); /* XXX ??? */
return (0);
}

View File

@ -249,7 +249,7 @@ ida_pci_attach(device_t dev)
* it appears that this board only does MEMIO access.
*/
if ((command & PCIM_CMD_MEMEN) == 0) {
device_printf(dev, "Only memory mapped I/O is supported\n");
device_printf(dev, "Only memory mapped I/O is supported\n");
return (ENXIO);
}
@ -292,13 +292,13 @@ ida_pci_attach(device_t dev)
}
rid = 0;
ida->irq_res_type = SYS_RES_IRQ;
ida->irq_res_type = SYS_RES_IRQ;
ida->irq = bus_alloc_resource_any(dev, ida->irq_res_type, &rid,
RF_ACTIVE | RF_SHAREABLE);
if (ida->irq == NULL) {
ida_free(ida);
return (ENOMEM);
}
if (ida->irq == NULL) {
ida_free(ida);
return (ENOMEM);
}
error = bus_setup_intr(dev, ida->irq, INTR_TYPE_BIO | INTR_ENTROPY,
ida_intr, ida, &ida->ih);
if (error) {
@ -309,9 +309,9 @@ ida_pci_attach(device_t dev)
error = ida_init(ida);
if (error) {
ida_free(ida);
return (error);
}
ida_free(ida);
return (error);
}
ida_attach(ida);
ida->flags |= IDA_ATTACHED;