Module Name:    src
Committed By:   skrll
Date:           Tue Dec 31 14:00:35 UTC 2024

Modified Files:
        src/sys/dev/pci: pcireg.h

Log Message:
Use C99 types


To generate a diff of this commit:
cvs rdiff -u -r1.171 -r1.172 src/sys/dev/pci/pcireg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/pcireg.h
diff -u src/sys/dev/pci/pcireg.h:1.171 src/sys/dev/pci/pcireg.h:1.172
--- src/sys/dev/pci/pcireg.h:1.171	Fri Jun 14 03:15:04 2024
+++ src/sys/dev/pci/pcireg.h	Tue Dec 31 14:00:35 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: pcireg.h,v 1.171 2024/06/14 03:15:04 msaitoh Exp $	*/
+/*	$NetBSD: pcireg.h,v 1.172 2024/12/31 14:00:35 skrll Exp $	*/
 
 /*
  * Copyright (c) 1995, 1996, 1999, 2000
@@ -50,8 +50,8 @@
  */
 #define	PCI_ID_REG		0x00
 
-typedef u_int16_t pci_vendor_id_t;
-typedef u_int16_t pci_product_id_t;
+typedef uint16_t pci_vendor_id_t;
+typedef uint16_t pci_product_id_t;
 
 #define	PCI_VENDOR_SHIFT		0
 #define	PCI_VENDOR_MASK			0xffffU
@@ -129,10 +129,10 @@ typedef u_int16_t pci_product_id_t;
  */
 #define	PCI_CLASS_REG		0x08
 
-typedef u_int8_t pci_class_t;
-typedef u_int8_t pci_subclass_t;
-typedef u_int8_t pci_interface_t;
-typedef u_int8_t pci_revision_t;
+typedef uint8_t pci_class_t;
+typedef uint8_t pci_subclass_t;
+typedef uint8_t pci_interface_t;
+typedef uint8_t pci_revision_t;
 
 #define	PCI_CLASS_SHIFT			24
 #define	PCI_CLASS_MASK			0xffU
@@ -1302,10 +1302,10 @@ struct pci_msix_table_entry {
  */
 #define	PCI_INTERRUPT_REG	0x3c
 
-typedef u_int8_t pci_intr_latency_t;
-typedef u_int8_t pci_intr_grant_t;
-typedef u_int8_t pci_intr_pin_t;
-typedef u_int8_t pci_intr_line_t;
+typedef uint8_t pci_intr_latency_t;
+typedef uint8_t pci_intr_grant_t;
+typedef uint8_t pci_intr_pin_t;
+typedef uint8_t pci_intr_line_t;
 
 #define PCI_MAX_LAT_SHIFT		24
 #define	PCI_MAX_LAT_MASK		0xff

Reply via email to