summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-10-22 21:50:03 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-10-22 21:50:03 +0000
commit4d73a72882d4a5c10d80c02328f3560dfe873404 (patch)
tree5161dcf4bb225b9ba7a0f4f64e40454ea0063087 /sys/dev/ic
parentce661a32cb4dab2aefb0782466d643d24b44d829 (diff)
put opening { on same line as struct name
ok claudio@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/aacvar.h11
-rw-r--r--sys/dev/ic/adv.h8
-rw-r--r--sys/dev/ic/aic79xx.h5
-rw-r--r--sys/dev/ic/trm.h20
4 files changed, 16 insertions, 28 deletions
diff --git a/sys/dev/ic/aacvar.h b/sys/dev/ic/aacvar.h
index 2044e450b9a..a8003682737 100644
--- a/sys/dev/ic/aacvar.h
+++ b/sys/dev/ic/aacvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: aacvar.h,v 1.18 2023/09/11 08:40:25 mvs Exp $ */
+/* $OpenBSD: aacvar.h,v 1.19 2024/10/22 21:50:02 jsg Exp $ */
/*-
* Copyright (c) 2000 Michael Smith
@@ -235,8 +235,7 @@ typedef struct rwlock aac_lock_t;
/*
* Per-container data structure
*/
-struct aac_container
-{
+struct aac_container {
struct aac_mntobj co_mntobj;
int co_found;
TAILQ_ENTRY(aac_container) co_link;
@@ -246,8 +245,7 @@ struct aac_container
* A command control block, one for each corresponding command index of the
* controller.
*/
-struct aac_command
-{
+struct aac_command {
TAILQ_ENTRY(aac_command) cm_link; /* list linkage */
struct aac_softc *cm_sc; /* controller that owns us */
@@ -311,8 +309,7 @@ struct aac_qstat {
/*
* Per-controller structure.
*/
-struct aac_softc
-{
+struct aac_softc {
struct device aac_dev;
void *aac_ih;
diff --git a/sys/dev/ic/adv.h b/sys/dev/ic/adv.h
index d505e5e1221..360f86be081 100644
--- a/sys/dev/ic/adv.h
+++ b/sys/dev/ic/adv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: adv.h,v 1.7 2020/02/18 20:24:52 krw Exp $ */
+/* $OpenBSD: adv.h,v 1.8 2024/10/22 21:50:02 jsg Exp $ */
/* $NetBSD: adv.h,v 1.3 1998/09/26 16:02:56 dante Exp $ */
/*
@@ -39,8 +39,7 @@
/******************************************************************************/
-struct adv_ccb
-{
+struct adv_ccb {
ASC_SG_HEAD sghead;
ASC_SCSI_Q scsiq;
@@ -67,8 +66,7 @@ typedef struct adv_ccb ADV_CCB;
#define ADV_MAX_CCB 32
-struct adv_control
-{
+struct adv_control {
ADV_CCB ccbs[ADV_MAX_CCB]; /* all our control blocks */
};
diff --git a/sys/dev/ic/aic79xx.h b/sys/dev/ic/aic79xx.h
index 03d6af31d34..f1e223dd41c 100644
--- a/sys/dev/ic/aic79xx.h
+++ b/sys/dev/ic/aic79xx.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic79xx.h,v 1.33 2024/09/04 07:54:52 mglocker Exp $ */
+/* $OpenBSD: aic79xx.h,v 1.34 2024/10/22 21:50:02 jsg Exp $ */
/*
* Copyright (c) 2004 Milos Urbanek, Kenneth R. Westerback & Marco Peereboom
@@ -1034,8 +1034,7 @@ typedef uint8_t ahd_mode_state;
typedef void ahd_callback_t (void *);
-struct ahd_completion
-{
+struct ahd_completion {
uint16_t tag;
uint8_t sg_status;
uint8_t valid_tag;
diff --git a/sys/dev/ic/trm.h b/sys/dev/ic/trm.h
index 3f0bf34d651..48a0cd16179 100644
--- a/sys/dev/ic/trm.h
+++ b/sys/dev/ic/trm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: trm.h,v 1.8 2024/09/04 07:54:52 mglocker Exp $
+/* $OpenBSD: trm.h,v 1.9 2024/10/22 21:50:02 jsg Exp $
* ------------------------------------------------------------
* O.S : OpenBSD
* File Name : trm.h
@@ -41,8 +41,7 @@
* Segment Entry
* ------------------------------------------------------------
*/
-struct SGentry
-{
+struct SGentry {
u_int32_t address;
u_int32_t length;
};
@@ -68,8 +67,7 @@ struct SGentry
* SCSI Request Block
*-----------------------------------------------------------------------
*/
-struct trm_scsi_req_q
-{
+struct trm_scsi_req_q {
TAILQ_ENTRY(trm_scsi_req_q) link;
bus_dmamap_t dmamapxfer;
u_int32_t PhysSRB;
@@ -144,8 +142,7 @@ TAILQ_HEAD(SRB_HEAD, trm_scsi_req_q);
* Device Control Block
*-----------------------------------------------------------------------
*/
-struct trm_dcb
-{
+struct trm_dcb {
u_int32_t TagMask;
u_int16_t DCBFlag;
@@ -180,8 +177,7 @@ struct trm_dcb
* Adapter Control Block
*-----------------------------------------------------------------------
*/
-struct trm_softc
-{
+struct trm_softc {
struct device sc_device;
bus_space_handle_t sc_iohandle;
@@ -226,8 +222,7 @@ struct trm_softc
/*
* The SEEPROM structure for TRM_S1040
*/
-struct trm_target_nvram
-{
+struct trm_target_nvram {
u_int8_t NvmTarCfg0; /* Target configuration byte 0 */
#define TRM_WIDE 0x20 /* Wide negotiate */
#define TRM_TAG_QUEUING 0x10 /* Enable SCSI tag queuing */
@@ -241,8 +236,7 @@ struct trm_target_nvram
u_int8_t NvmTarCfg3; /* Target configuration byte 3 */
};
-struct trm_adapter_nvram
-{
+struct trm_adapter_nvram {
u_int8_t NvramSubVendorID[2]; /*0,1 Sub Vendor ID */
u_int8_t NvramSubSysID[2]; /*2,3 Sub System ID */
u_int8_t NvramSubClass; /*4 Sub Class */