tws_cam.c (8644bfdbfa4d9be6d6610c29137b06d72ce4e547) | tws_cam.c (a21f086a3316346ba04f9381bf10e463a8328394) |
---|---|
1/* 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2010 LSI Corp. 5 * All rights reserved. 6 * Author : Manjunath Ranganathaiah <manjunath.ranganathaiah@lsi.com> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 1053 unchanged lines hidden (view full) --- 1062 if ( histat & TWS_BIT3 ) { 1063 tws_intr_resp(sc); 1064 } 1065} 1066 1067static void 1068tws_intr_attn_aen(struct tws_softc *sc) 1069{ | 1/* 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2010 LSI Corp. 5 * All rights reserved. 6 * Author : Manjunath Ranganathaiah <manjunath.ranganathaiah@lsi.com> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 1053 unchanged lines hidden (view full) --- 1062 if ( histat & TWS_BIT3 ) { 1063 tws_intr_resp(sc); 1064 } 1065} 1066 1067static void 1068tws_intr_attn_aen(struct tws_softc *sc) 1069{ |
1070 u_int32_t db=0; | |
1071 1072 /* maskoff db intrs until all the aens are fetched */ 1073 /* tws_disable_db_intr(sc); */ 1074 tws_fetch_aen((void *)sc); 1075 tws_write_reg(sc, TWS_I2O0_HOBDBC, TWS_BIT18, 4); | 1070 1071 /* maskoff db intrs until all the aens are fetched */ 1072 /* tws_disable_db_intr(sc); */ 1073 tws_fetch_aen((void *)sc); 1074 tws_write_reg(sc, TWS_I2O0_HOBDBC, TWS_BIT18, 4); |
1076 db = tws_read_reg(sc, TWS_I2O0_IOBDB, 4); | 1075 (void)tws_read_reg(sc, TWS_I2O0_IOBDB, 4); |
1077 1078} 1079 1080static void 1081tws_intr_attn_error(struct tws_softc *sc) 1082{ | 1076 1077} 1078 1079static void 1080tws_intr_attn_error(struct tws_softc *sc) 1081{ |
1083 u_int32_t db=0; | |
1084 1085 TWS_TRACE(sc, "attn error", 0, 0); 1086 tws_write_reg(sc, TWS_I2O0_HOBDBC, ~0, 4); | 1082 1083 TWS_TRACE(sc, "attn error", 0, 0); 1084 tws_write_reg(sc, TWS_I2O0_HOBDBC, ~0, 4); |
1087 db = tws_read_reg(sc, TWS_I2O0_IOBDB, 4); | 1085 (void)tws_read_reg(sc, TWS_I2O0_IOBDB, 4); |
1088 device_printf(sc->tws_dev, "Micro controller error.\n"); 1089 tws_reset(sc); 1090} 1091 1092static void 1093tws_intr_resp(struct tws_softc *sc) 1094{ 1095 u_int16_t req_id; --- 185 unchanged lines hidden --- | 1086 device_printf(sc->tws_dev, "Micro controller error.\n"); 1087 tws_reset(sc); 1088} 1089 1090static void 1091tws_intr_resp(struct tws_softc *sc) 1092{ 1093 u_int16_t req_id; --- 185 unchanged lines hidden --- |