summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>1999-10-24 14:54:12 +0000
committernyan <nyan@FreeBSD.org>1999-10-24 14:54:12 +0000
commit0e060fbfb1268ae91bc0e534e3bef1243b47142f (patch)
tree43900762da156db5a9871bc4be218ef579497e3a /sys
parent490fc835e877c6fe352b18588ad0098d169209e5 (diff)
downloadFreeBSD-src-0e060fbfb1268ae91bc0e534e3bef1243b47142f.zip
FreeBSD-src-0e060fbfb1268ae91bc0e534e3bef1243b47142f.tar.gz
Fixed to compile a kernel with scbus0 and without da0.
Added $FreeBSD$. Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
Diffstat (limited to 'sys')
-rw-r--r--sys/pc98/pc98/pc98_machdep.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/pc98/pc98/pc98_machdep.c b/sys/pc98/pc98/pc98_machdep.c
index 1b0e75e..163a8b9 100644
--- a/sys/pc98/pc98/pc98_machdep.c
+++ b/sys/pc98/pc98/pc98_machdep.c
@@ -27,6 +27,8 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * $FreeBSD$
*/
#include "opt_pc98.h"
@@ -224,7 +226,6 @@ pc98_getmemsize(void)
#include "da.h"
-#if NDA > 0
/*
* Read a geometry information of SCSI HDD from BIOS work area.
*
@@ -234,6 +235,7 @@ pc98_getmemsize(void)
int
scsi_da_bios_params(struct ccb_calc_geometry *ccg)
{
+#if NDA > 0
u_char *tmp;
int target;
int bus;
@@ -271,6 +273,6 @@ scsi_da_bios_params(struct ccb_calc_geometry *ccg)
}
return 1;
}
+#endif /* NDA > 0 */
return 0;
}
-#endif
OpenPOWER on IntegriCloud