From 62fba1c39711542435d617d34d6849485d0fa8c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Schmidt?= Date: Sun, 5 Mar 2006 21:32:38 +0000 Subject: [PATCH] Add USB modes. --- sys/dev/ata/ata-all.c | 3 +++ sys/sys/ata.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index 9a1c376bbf5d..f1f1a25fe260 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -847,6 +847,9 @@ ata_mode2str(int mode) case ATA_UDMA6: return "UDMA133"; case ATA_SA150: return "SATA150"; case ATA_SA300: return "SATA300"; + case ATA_USB: return "USB"; + case ATA_USB1: return "USB1"; + case ATA_USB2: return "USB2"; default: if (mode & ATA_DMA_MASK) return "BIOSDMA"; diff --git a/sys/sys/ata.h b/sys/sys/ata.h index 345f75f5396b..36a6d35c6fd4 100644 --- a/sys/sys/ata.h +++ b/sys/sys/ata.h @@ -215,6 +215,9 @@ struct ata_params { #define ATA_SA150 0x47 #define ATA_SA300 0x48 #define ATA_DMA_MAX 0x4f +#define ATA_USB 0x80 +#define ATA_USB1 0x81 +#define ATA_USB2 0x82 /* ATA commands */