From 34ad2308146bd2683968373b3f427e50e7dbe7c6 Mon Sep 17 00:00:00 2001 From: sos Date: Thu, 10 Apr 2008 13:05:05 +0000 Subject: Add experimental support for SATA Port Multipliers Support is working on the Silicon Image SiI3124/3132. Support is working on some AHCI chips but far from all. Remember this is WIP, so test reports and (constructive) suggestions are welcome! --- sys/dev/ata/atapi-cd.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'sys/dev/ata/atapi-cd.c') diff --git a/sys/dev/ata/atapi-cd.c b/sys/dev/ata/atapi-cd.c index df63fe1..a64cfeb 100644 --- a/sys/dev/ata/atapi-cd.c +++ b/sys/dev/ata/atapi-cd.c @@ -1,5 +1,5 @@ /*- - * Copyright (c) 1998 - 2007 Søren Schmidt + * Copyright (c) 1998 - 2008 Søren Schmidt * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -908,10 +908,7 @@ acd_set_ioparm(device_t dev) struct ata_channel *ch = device_get_softc(device_get_parent(dev)); struct acd_softc *cdp = device_get_ivars(dev); - if (ch->dma) - cdp->iomax = min(ch->dma->max_iosize, 65534); - else - cdp->iomax = min(DFLTPHYS, 65534); + cdp->iomax = min(ch->dma.max_iosize, 65534); } static void @@ -1706,8 +1703,7 @@ acd_describe(device_t dev) (cdp->cap.media & MST_WRITE_CDRW) ? "CDRW" : (cdp->cap.media & MST_WRITE_CDR) ? "CDR" : (cdp->cap.media & MST_READ_DVDROM) ? "DVDROM":"CDROM", - device_get_unit(ch->dev), - (atadev->unit == ATA_MASTER) ? "master" : "slave"); + device_get_unit(ch->dev), ata_unit2str(atadev)); device_printf(dev, "%s", ""); if (cdp->cap.cur_read_speed) { @@ -1879,8 +1875,7 @@ acd_describe(device_t dev) printf("with %d CD changer ", cdp->changer_info->slots); printf("<%.40s/%.8s> at ata%d-%s %s\n", atadev->param.model, atadev->param.revision, - device_get_unit(ch->dev), - (atadev->unit == ATA_MASTER) ? "master" : "slave", + device_get_unit(ch->dev), ata_unit2str(atadev), ata_mode2str(atadev->mode) ); } } -- cgit v1.1