From: dlg Date: Fri, 17 Jan 2014 22:18:27 +0000 (+0000) Subject: aacvar advertises a public api which is only used inside aac.c. make it X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=381451e5130edc8104b049df83968d3bfb83d3be;p=openbsd aacvar advertises a public api which is only used inside aac.c. make it "private" so i dont feel bad about changing it. --- diff --git a/sys/dev/ic/aac.c b/sys/dev/ic/aac.c index 10c17978e05..72f3441eb28 100644 --- a/sys/dev/ic/aac.c +++ b/sys/dev/ic/aac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aac.c,v 1.58 2013/11/18 20:21:51 deraadt Exp $ */ +/* $OpenBSD: aac.c,v 1.59 2014/01/17 22:18:27 dlg Exp $ */ /*- * Copyright (c) 2000 Michael Smith @@ -110,6 +110,13 @@ void aac_map_command_sg(void *, bus_dma_segment_t *, int, int); int aac_alloc_commands(struct aac_softc *); void aac_free_commands(struct aac_softc *); void aac_unmap_command(struct aac_command *); +int aac_wait_command(struct aac_command *, int); +int aac_alloc_command(struct aac_softc *, struct aac_command **); +void aac_release_command(struct aac_command *); +int aac_alloc_sync_fib(struct aac_softc *, struct aac_fib **, int); +void aac_release_sync_fib(struct aac_softc *); +int aac_sync_fib(struct aac_softc *, u_int32_t, u_int32_t, + struct aac_fib *, u_int16_t); void aac_scsi_cmd(struct scsi_xfer *); void aac_startio(struct aac_softc *); diff --git a/sys/dev/ic/aacvar.h b/sys/dev/ic/aacvar.h index dcaf6a90a5e..a08e021f1a8 100644 --- a/sys/dev/ic/aacvar.h +++ b/sys/dev/ic/aacvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: aacvar.h,v 1.9 2013/01/06 22:06:54 martynas Exp $ */ +/* $OpenBSD: aacvar.h,v 1.10 2014/01/17 22:18:27 dlg Exp $ */ /*- * Copyright (c) 2000 Michael Smith @@ -426,17 +426,6 @@ struct aac_softc void *aac_sdh; }; -/* - * Public functions - */ -extern int aac_wait_command(struct aac_command *, int); -extern int aac_alloc_command(struct aac_softc *, struct aac_command **); -extern void aac_release_command(struct aac_command *); -extern int aac_alloc_sync_fib(struct aac_softc *, struct aac_fib **, int); -extern void aac_release_sync_fib(struct aac_softc *); -extern int aac_sync_fib(struct aac_softc *, u_int32_t, u_int32_t, - struct aac_fib *, u_int16_t); - void aacminphys(struct buf *, struct scsi_link *); int aac_attach(struct aac_softc *); int aac_intr(void *);