Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ata remove unused atacmd_tostatq()
details: https://anonhg.NetBSD.org/src/rev/d1993f2da170
branches: trunk
changeset: 932779:d1993f2da170
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Fri May 15 21:56:14 2020 +0000
description:
remove unused atacmd_tostatq()
diffstat:
sys/dev/ata/atareg.h | 19 +------------------
1 files changed, 1 insertions(+), 18 deletions(-)
diffs (33 lines):
diff -r c041667aff6c -r d1993f2da170 sys/dev/ata/atareg.h
--- a/sys/dev/ata/atareg.h Fri May 15 19:28:09 2020 +0000
+++ b/sys/dev/ata/atareg.h Fri May 15 21:56:14 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atareg.h,v 1.44 2017/10/07 16:05:32 jdolecek Exp $ */
+/* $NetBSD: atareg.h,v 1.45 2020/05/15 21:56:14 jdolecek Exp $ */
/*
* Copyright (c) 1998, 2001 Manuel Bouyer.
@@ -186,23 +186,6 @@
#define WDCC_READ_FPDMA_QUEUED 0x60 /* SATA native queued read (48bit) */
#define WDCC_WRITE_FPDMA_QUEUED 0x61 /* SATA native queued write (48bit) */
-#ifdef _KERNEL
-/* Convert a 32-bit command to a Native SATA Queued command. */
-static __inline int
-atacmd_tostatq(int cmd32)
-{
- switch (cmd32) {
- case WDCC_READDMA:
- return WDCC_READ_FPDMA_QUEUED;
- case WDCC_WRITEDMA:
- return WDCC_WRITE_FPDMA_QUEUED;
- default:
- panic("atacmd_tosataq: illegal 32-bit command: %d", cmd32);
- /* NOTREACHED */
- }
-}
-#endif /* _KERNEL */
-
/* Subcommands for SET_FEATURES (features register) */
#define WDSF_8BIT_PIO_EN 0x01
#define WDSF_WRITE_CACHE_EN 0x02
Home |
Main Index |
Thread Index |
Old Index