summaryrefslogtreecommitdiff
path: root/sys/include/dev
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-02-20 10:21:48 -0500
committerIan Moffett <ian@osmora.org>2025-02-20 10:21:48 -0500
commit213cb06f5a95f2ca1b9e2f3886535f1f62a8171c (patch)
tree13808cd8da59912f7d8a70f5fb64dcecea4f8b1f /sys/include/dev
parent901f37e8d7746055b73721c06062367bee8de307 (diff)
kernel: ahci: __BIT() -> BIT()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/dev')
-rw-r--r--sys/include/dev/ic/ahciregs.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/include/dev/ic/ahciregs.h b/sys/include/dev/ic/ahciregs.h
index 319e35f..4a4dc65 100644
--- a/sys/include/dev/ic/ahciregs.h
+++ b/sys/include/dev/ic/ahciregs.h
@@ -31,7 +31,7 @@
#define _IC_AHCIREGS_H_
#include <sys/types.h>
-#include <sys/cdefs.h>
+#include <sys/param.h>
struct hba_port {
volatile uint64_t clb; /* Command list base (1k-byte aligned) */
@@ -71,9 +71,9 @@ struct hba_memspace {
};
/* Global host control bits */
-#define AHCI_GHC_AE __BIT(31) /* AHCI enable */
-#define AHCI_GHC_IE __BIT(1) /* Interrupt enable */
-#define AHCI_GHC_HR __BIT(0) /* HBA reset */
+#define AHCI_GHC_AE BIT(31) /* AHCI enable */
+#define AHCI_GHC_IE BIT(1) /* Interrupt enable */
+#define AHCI_GHC_HR BIT(0) /* HBA reset */
/* AHCI port signatures */
#define AHCI_SIG_ATA 0x00000101
@@ -97,24 +97,24 @@ struct hba_memspace {
* Port command and status bits
* See section 3.3.7 of the AHCI spec.
*/
-#define AHCI_PXCMD_ST __BIT(0) /* Start */
-#define AHCI_PXCMD_FRE __BIT(4) /* FIS Receive Enable */
-#define AHCI_PXCMD_FR __BIT(14) /* FIS Receive Running */
-#define AHCI_PXCMD_CR __BIT(15) /* Command List Running */
+#define AHCI_PXCMD_ST BIT(0) /* Start */
+#define AHCI_PXCMD_FRE BIT(4) /* FIS Receive Enable */
+#define AHCI_PXCMD_FR BIT(14) /* FIS Receive Running */
+#define AHCI_PXCMD_CR BIT(15) /* Command List Running */
/*
* Interrupt status bits
* See section 3.3.5 of the AHCI spec.
*/
-#define AHCI_PXIS_TFES __BIT(31)
+#define AHCI_PXIS_TFES BIT(31)
/*
* Task file data bits
* See section 3.3.8 of the AHCI spec.
*/
-#define AHCI_PXTFD_ERR __BIT(0)
-#define AHCI_PXTFD_DRQ __BIT(3)
-#define AHCI_PXTFD_BSY __BIT(7)
+#define AHCI_PXTFD_ERR BIT(0)
+#define AHCI_PXTFD_DRQ BIT(3)
+#define AHCI_PXTFD_BSY BIT(7)
/*
* Capability bits