From nobody Fri Jul 26 23:26:32 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WW3mS2hp4z5RYvS; Fri, 26 Jul 2024 23:26:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WW3mS1VtTz4vQs; Fri, 26 Jul 2024 23:26:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722036392; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zEKwdaEVY5VaVgBxWzRb0B2xYoVgFQNt2cEf3e9ssjs=; b=nOIxAB3Oyjl0FBzX8X1wPnNyYSvIVwdV10sQPcIegOdqlboI2pMIOVCl1oKEV2J3nJook9 LzqoewYSqw3Zz+k79ub1lp2TA/qmN5CV9py4wObYlOtV6t0NbV+FQ8zC9eyL1kC3o2Tg1d Y82vYhCK7wBVn3SVuceaOP19ZbTAnqgkxTuvnY0USl+rLjmsUhJw8ASmlAv/fMxRV6g70I PYWD67tgZSNVi+vQhCs5I2emup6qvikGBABVHOTqjbv0pzo528nCO3dTj/Y/fJZWg0+DeY +C6HG5NtrVZVu//eCq/vUZvpmpIMRg4e0ZmLkruqXKKmvwnNz7ytQpTWTxc2sw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722036392; a=rsa-sha256; cv=none; b=fcRz+nDuELredfZDbptV0vMljPp2USb28lB4RHMkDpKWe3ghGV4/4ZRzD54VCmte+DJtx5 dZZQ36Dj/561l0MWQqWJtrbQWS2c5GDFYkfpNrU1+QNCL1Ck1aKEBTDo3WhMQz7S2Nhr3+ a0HJb9tnjDRE9f+i57WpEXNkdwmPB9OkkphpHPLsY0xA0cizSX5O4OhAL/+otHq5WxXvK/ 8QcaGP0uB7YPl5JtMCICZ7pO+CFu5j24W0G5QtzNzRzfEaTfa3/jLymwbJQkLTFYXdmNy0 VAb0W4EVgqZj++7dgL7f0ggV6mZsnF0GqjAaXDS5rHwuaEEES3IpTvv+dkNx3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722036392; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zEKwdaEVY5VaVgBxWzRb0B2xYoVgFQNt2cEf3e9ssjs=; b=SuawbL9OLkFUA/fYpc/pFTeqUMtr8oEcMfmIWll0NlMPNOmjcHD59kAjFcAkbZaFUGywJl aEdMheuKGM5TKq3NEMg5c1sJvA1hSarVIeLELzdKg7O32xrf4UXsqC2MAPnWVeYAwgl6rk 14qnqyxCq3TYfToatUpFl1q4RJSef62RbtiyORf/H4kD/pAEw5AigdaVNY6SE2E1LTgmau /20xt7XqXy9UqqBWHFgaYIa2DUPnmeoisgMBJ9GFm0w7n6DtJZtjCBmUhBFssa9lvrlva3 Z0OD/DwnA+uo0oIeD/Jjzl78xyv+q6KLk5sE99jj06mHYXcz85b9fro2iP/4bQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WW3mS160JzjVw; Fri, 26 Jul 2024 23:26:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46QNQWpo070868; Fri, 26 Jul 2024 23:26:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46QNQWBv070865; Fri, 26 Jul 2024 23:26:32 GMT (envelope-from git) Date: Fri, 26 Jul 2024 23:26:32 GMT Message-Id: <202407262326.46QNQWBv070865@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 56ecc8a93221 - main - pci_user: Rename _old to _freebsd6 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 56ecc8a93221c16b6ea15d3dbea706a2c8bb33b4 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=56ecc8a93221c16b6ea15d3dbea706a2c8bb33b4 commit 56ecc8a93221c16b6ea15d3dbea706a2c8bb33b4 Author: Warner Losh AuthorDate: 2024-07-26 23:20:44 +0000 Commit: Warner Losh CommitDate: 2024-07-26 23:21:22 +0000 pci_user: Rename _old to _freebsd6 The pre-freebsd7 stuff is labeled _old right now. Relabel it as _freebsd6 instead. No functional change intended. I selected freebsd6 because that's the last version to have the ioctls, although I know there were changes in the interface for 4, 5 and 6. This broadly batches what we do with system calls that accumulate changes until we break and use a new one, we use the last major the system call was in. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D45867 --- sys/dev/pci/pci_user.c | 184 ++++++++++++++++++++++++------------------------- 1 file changed, 92 insertions(+), 92 deletions(-) diff --git a/sys/dev/pci/pci_user.c b/sys/dev/pci/pci_user.c index cdb893efa950..aedf3409fc6e 100644 --- a/sys/dev/pci/pci_user.c +++ b/sys/dev/pci/pci_user.c @@ -287,25 +287,25 @@ pci_conf_match32(struct pci_match_conf32 *matches, int num_matches, #define PRE7_COMPAT typedef enum { - PCI_GETCONF_NO_MATCH_OLD = 0x00, - PCI_GETCONF_MATCH_BUS_OLD = 0x01, - PCI_GETCONF_MATCH_DEV_OLD = 0x02, - PCI_GETCONF_MATCH_FUNC_OLD = 0x04, - PCI_GETCONF_MATCH_NAME_OLD = 0x08, - PCI_GETCONF_MATCH_UNIT_OLD = 0x10, - PCI_GETCONF_MATCH_VENDOR_OLD = 0x20, - PCI_GETCONF_MATCH_DEVICE_OLD = 0x40, - PCI_GETCONF_MATCH_CLASS_OLD = 0x80 -} pci_getconf_flags_old; - -struct pcisel_old { + PCI_GETCONF_NO_MATCH_FREEBSD6 = 0x00, + PCI_GETCONF_MATCH_BUS_FREEBSD6 = 0x01, + PCI_GETCONF_MATCH_DEV_FREEBSD6 = 0x02, + PCI_GETCONF_MATCH_FUNC_FREEBSD6 = 0x04, + PCI_GETCONF_MATCH_NAME_FREEBSD6 = 0x08, + PCI_GETCONF_MATCH_UNIT_FREEBSD6 = 0x10, + PCI_GETCONF_MATCH_VENDOR_FREEBSD6 = 0x20, + PCI_GETCONF_MATCH_DEVICE_FREEBSD6 = 0x40, + PCI_GETCONF_MATCH_CLASS_FREEBSD6 = 0x80 +} pci_getconf_flags_freebsd6; + +struct pcisel_freebsd6 { u_int8_t pc_bus; /* bus number */ u_int8_t pc_dev; /* device on this bus */ u_int8_t pc_func; /* function on this device */ }; -struct pci_conf_old { - struct pcisel_old pc_sel; /* bus+slot+function */ +struct pci_conf_freebsd6 { + struct pcisel_freebsd6 pc_sel; /* bus+slot+function */ u_int8_t pc_hdr; /* PCI header type */ u_int16_t pc_subvendor; /* card vendor ID */ u_int16_t pc_subdevice; /* card device ID, assigned by @@ -321,26 +321,26 @@ struct pci_conf_old { u_long pd_unit; /* device unit number */ }; -struct pci_match_conf_old { - struct pcisel_old pc_sel; /* bus+slot+function */ +struct pci_match_conf_freebsd6 { + struct pcisel_freebsd6 pc_sel; /* bus+slot+function */ char pd_name[PCI_MAXNAMELEN + 1]; /* device name */ u_long pd_unit; /* Unit number */ u_int16_t pc_vendor; /* PCI Vendor ID */ u_int16_t pc_device; /* PCI Device ID */ u_int8_t pc_class; /* PCI class */ - pci_getconf_flags_old flags; /* Matching expression */ + pci_getconf_flags_freebsd6 flags; /* Matching expression */ }; -struct pci_io_old { - struct pcisel_old pi_sel; /* device to operate on */ +struct pci_io_freebsd6 { + struct pcisel_freebsd6 pi_sel; /* device to operate on */ int pi_reg; /* configuration register to examine */ int pi_width; /* width (in bytes) of read or write */ u_int32_t pi_data; /* data to write or result of read */ }; #ifdef COMPAT_FREEBSD32 -struct pci_conf_old32 { - struct pcisel_old pc_sel; /* bus+slot+function */ +struct pci_conf_freebsd6_32 { + struct pcisel_freebsd6 pc_sel; /* bus+slot+function */ uint8_t pc_hdr; /* PCI header type */ uint16_t pc_subvendor; /* card vendor ID */ uint16_t pc_subdevice; /* card device ID, assigned by @@ -356,25 +356,25 @@ struct pci_conf_old32 { uint32_t pd_unit; /* device unit number (u_long) */ }; -struct pci_match_conf_old32 { - struct pcisel_old pc_sel; /* bus+slot+function */ +struct pci_match_conf_freebsd6_32 { + struct pcisel_freebsd6 pc_sel; /* bus+slot+function */ char pd_name[PCI_MAXNAMELEN + 1]; /* device name */ uint32_t pd_unit; /* Unit number (u_long) */ uint16_t pc_vendor; /* PCI Vendor ID */ uint16_t pc_device; /* PCI Device ID */ uint8_t pc_class; /* PCI class */ - pci_getconf_flags_old flags; /* Matching expression */ + pci_getconf_flags_freebsd6 flags; /* Matching expression */ }; -#define PCIOCGETCONF_OLD32 _IOWR('p', 1, struct pci_conf_io32) +#define PCIOCGETCONF_FREEBSD6_32 _IOWR('p', 1, struct pci_conf_io32) #endif /* COMPAT_FREEBSD32 */ -#define PCIOCGETCONF_OLD _IOWR('p', 1, struct pci_conf_io) -#define PCIOCREAD_OLD _IOWR('p', 2, struct pci_io_old) -#define PCIOCWRITE_OLD _IOWR('p', 3, struct pci_io_old) +#define PCIOCGETCONF_FREEBSD6 _IOWR('p', 1, struct pci_conf_io) +#define PCIOCREAD_FREEBSD6 _IOWR('p', 2, struct pci_io_freebsd6) +#define PCIOCWRITE_FREEBSD6 _IOWR('p', 3, struct pci_io_freebsd6) static int -pci_conf_match_old(struct pci_match_conf_old *matches, int num_matches, +pci_conf_match_freebsd6(struct pci_match_conf_freebsd6 *matches, int num_matches, struct pci_conf *match_buf) { int i; @@ -389,7 +389,7 @@ pci_conf_match_old(struct pci_match_conf_old *matches, int num_matches, /* * I'm not sure why someone would do this...but... */ - if (matches[i].flags == PCI_GETCONF_NO_MATCH_OLD) + if (matches[i].flags == PCI_GETCONF_NO_MATCH_FREEBSD6) continue; /* @@ -397,35 +397,35 @@ pci_conf_match_old(struct pci_match_conf_old *matches, int num_matches, * comparison. If the comparison fails, we don't have a * match, go on to the next item if there is one. */ - if (((matches[i].flags & PCI_GETCONF_MATCH_BUS_OLD) != 0) + if (((matches[i].flags & PCI_GETCONF_MATCH_BUS_FREEBSD6) != 0) && (match_buf->pc_sel.pc_bus != matches[i].pc_sel.pc_bus)) continue; - if (((matches[i].flags & PCI_GETCONF_MATCH_DEV_OLD) != 0) + if (((matches[i].flags & PCI_GETCONF_MATCH_DEV_FREEBSD6) != 0) && (match_buf->pc_sel.pc_dev != matches[i].pc_sel.pc_dev)) continue; - if (((matches[i].flags & PCI_GETCONF_MATCH_FUNC_OLD) != 0) + if (((matches[i].flags & PCI_GETCONF_MATCH_FUNC_FREEBSD6) != 0) && (match_buf->pc_sel.pc_func != matches[i].pc_sel.pc_func)) continue; - if (((matches[i].flags & PCI_GETCONF_MATCH_VENDOR_OLD) != 0) + if (((matches[i].flags & PCI_GETCONF_MATCH_VENDOR_FREEBSD6) != 0) && (match_buf->pc_vendor != matches[i].pc_vendor)) continue; - if (((matches[i].flags & PCI_GETCONF_MATCH_DEVICE_OLD) != 0) + if (((matches[i].flags & PCI_GETCONF_MATCH_DEVICE_FREEBSD6) != 0) && (match_buf->pc_device != matches[i].pc_device)) continue; - if (((matches[i].flags & PCI_GETCONF_MATCH_CLASS_OLD) != 0) + if (((matches[i].flags & PCI_GETCONF_MATCH_CLASS_FREEBSD6) != 0) && (match_buf->pc_class != matches[i].pc_class)) continue; - if (((matches[i].flags & PCI_GETCONF_MATCH_UNIT_OLD) != 0) + if (((matches[i].flags & PCI_GETCONF_MATCH_UNIT_FREEBSD6) != 0) && (match_buf->pd_unit != matches[i].pd_unit)) continue; - if (((matches[i].flags & PCI_GETCONF_MATCH_NAME_OLD) != 0) + if (((matches[i].flags & PCI_GETCONF_MATCH_NAME_FREEBSD6) != 0) && (strncmp(matches[i].pd_name, match_buf->pd_name, sizeof(match_buf->pd_name)) != 0)) continue; @@ -438,7 +438,7 @@ pci_conf_match_old(struct pci_match_conf_old *matches, int num_matches, #ifdef COMPAT_FREEBSD32 static int -pci_conf_match_old32(struct pci_match_conf_old32 *matches, int num_matches, +pci_conf_match_freebsd6_32(struct pci_match_conf_freebsd6_32 *matches, int num_matches, struct pci_conf *match_buf) { int i; @@ -453,7 +453,7 @@ pci_conf_match_old32(struct pci_match_conf_old32 *matches, int num_matches, /* * I'm not sure why someone would do this...but... */ - if (matches[i].flags == PCI_GETCONF_NO_MATCH_OLD) + if (matches[i].flags == PCI_GETCONF_NO_MATCH_FREEBSD6) continue; /* @@ -461,35 +461,35 @@ pci_conf_match_old32(struct pci_match_conf_old32 *matches, int num_matches, * comparison. If the comparison fails, we don't have a * match, go on to the next item if there is one. */ - if (((matches[i].flags & PCI_GETCONF_MATCH_BUS_OLD) != 0) && + if (((matches[i].flags & PCI_GETCONF_MATCH_BUS_FREEBSD6) != 0) && (match_buf->pc_sel.pc_bus != matches[i].pc_sel.pc_bus)) continue; - if (((matches[i].flags & PCI_GETCONF_MATCH_DEV_OLD) != 0) && + if (((matches[i].flags & PCI_GETCONF_MATCH_DEV_FREEBSD6) != 0) && (match_buf->pc_sel.pc_dev != matches[i].pc_sel.pc_dev)) continue; - if (((matches[i].flags & PCI_GETCONF_MATCH_FUNC_OLD) != 0) && + if (((matches[i].flags & PCI_GETCONF_MATCH_FUNC_FREEBSD6) != 0) && (match_buf->pc_sel.pc_func != matches[i].pc_sel.pc_func)) continue; - if (((matches[i].flags & PCI_GETCONF_MATCH_VENDOR_OLD) != 0) && + if (((matches[i].flags & PCI_GETCONF_MATCH_VENDOR_FREEBSD6) != 0) && (match_buf->pc_vendor != matches[i].pc_vendor)) continue; - if (((matches[i].flags & PCI_GETCONF_MATCH_DEVICE_OLD) != 0) && + if (((matches[i].flags & PCI_GETCONF_MATCH_DEVICE_FREEBSD6) != 0) && (match_buf->pc_device != matches[i].pc_device)) continue; - if (((matches[i].flags & PCI_GETCONF_MATCH_CLASS_OLD) != 0) && + if (((matches[i].flags & PCI_GETCONF_MATCH_CLASS_FREEBSD6) != 0) && (match_buf->pc_class != matches[i].pc_class)) continue; - if (((matches[i].flags & PCI_GETCONF_MATCH_UNIT_OLD) != 0) && + if (((matches[i].flags & PCI_GETCONF_MATCH_UNIT_FREEBSD6) != 0) && ((u_int32_t)match_buf->pd_unit != matches[i].pd_unit)) continue; - if (((matches[i].flags & PCI_GETCONF_MATCH_NAME_OLD) != 0) && + if (((matches[i].flags & PCI_GETCONF_MATCH_NAME_FREEBSD6) != 0) && (strncmp(matches[i].pd_name, match_buf->pd_name, sizeof(match_buf->pd_name)) != 0)) continue; @@ -503,14 +503,14 @@ pci_conf_match_old32(struct pci_match_conf_old32 *matches, int num_matches, #endif /* !PRE7_COMPAT */ union pci_conf_union { - struct pci_conf pc; + struct pci_conf pc; #ifdef COMPAT_FREEBSD32 - struct pci_conf32 pc32; + struct pci_conf32 pc32; #endif #ifdef PRE7_COMPAT - struct pci_conf_old pco; + struct pci_conf_freebsd6 pco; #ifdef COMPAT_FREEBSD32 - struct pci_conf_old32 pco32; + struct pci_conf_freebsd6_32 pco32; #endif #endif }; @@ -530,14 +530,14 @@ pci_conf_match(u_long cmd, struct pci_match_conf *matches, int num_matches, num_matches, match_buf)); #endif #ifdef PRE7_COMPAT - case PCIOCGETCONF_OLD: - return (pci_conf_match_old( - (struct pci_match_conf_old *)matches, num_matches, + case PCIOCGETCONF_FREEBSD6: + return (pci_conf_match_freebsd6( + (struct pci_match_conf_freebsd6 *)matches, num_matches, match_buf)); #ifdef COMPAT_FREEBSD32 - case PCIOCGETCONF_OLD32: - return (pci_conf_match_old32( - (struct pci_match_conf_old32 *)matches, num_matches, + case PCIOCGETCONF_FREEBSD6_32: + return (pci_conf_match_freebsd6_32( + (struct pci_match_conf_freebsd6_32 *)matches, num_matches, match_buf)); #endif #endif @@ -651,11 +651,11 @@ pci_match_conf_size(u_long cmd) return (sizeof(struct pci_match_conf32)); #endif #ifdef PRE7_COMPAT - case PCIOCGETCONF_OLD: - return (sizeof(struct pci_match_conf_old)); + case PCIOCGETCONF_FREEBSD6: + return (sizeof(struct pci_match_conf_freebsd6)); #ifdef COMPAT_FREEBSD32 - case PCIOCGETCONF_OLD32: - return (sizeof(struct pci_match_conf_old32)); + case PCIOCGETCONF_FREEBSD6_32: + return (sizeof(struct pci_match_conf_freebsd6_32)); #endif #endif default: @@ -676,11 +676,11 @@ pci_conf_size(u_long cmd) return (sizeof(struct pci_conf32)); #endif #ifdef PRE7_COMPAT - case PCIOCGETCONF_OLD: - return (sizeof(struct pci_conf_old)); + case PCIOCGETCONF_FREEBSD6: + return (sizeof(struct pci_conf_freebsd6)); #ifdef COMPAT_FREEBSD32 - case PCIOCGETCONF_OLD32: - return (sizeof(struct pci_conf_old32)); + case PCIOCGETCONF_FREEBSD6_32: + return (sizeof(struct pci_conf_freebsd6_32)); #endif #endif default: @@ -699,7 +699,7 @@ pci_conf_io_init(struct pci_conf_io *cio, caddr_t data, u_long cmd) switch (cmd) { case PCIOCGETCONF: #ifdef PRE7_COMPAT - case PCIOCGETCONF_OLD: + case PCIOCGETCONF_FREEBSD6: #endif *cio = *(struct pci_conf_io *)data; return; @@ -707,7 +707,7 @@ pci_conf_io_init(struct pci_conf_io *cio, caddr_t data, u_long cmd) #ifdef COMPAT_FREEBSD32 case PCIOCGETCONF32: #ifdef PRE7_COMPAT - case PCIOCGETCONF_OLD32: + case PCIOCGETCONF_FREEBSD6_32: #endif cio32 = (struct pci_conf_io32 *)data; cio->pat_buf_len = cio32->pat_buf_len; @@ -740,7 +740,7 @@ pci_conf_io_update_data(const struct pci_conf_io *cio, caddr_t data, switch (cmd) { case PCIOCGETCONF: #ifdef PRE7_COMPAT - case PCIOCGETCONF_OLD: + case PCIOCGETCONF_FREEBSD6: #endif d_cio = (struct pci_conf_io *)data; d_cio->status = cio->status; @@ -752,7 +752,7 @@ pci_conf_io_update_data(const struct pci_conf_io *cio, caddr_t data, #ifdef COMPAT_FREEBSD32 case PCIOCGETCONF32: #ifdef PRE7_COMPAT - case PCIOCGETCONF_OLD32: + case PCIOCGETCONF_FREEBSD6_32: #endif cio32 = (struct pci_conf_io32 *)data; @@ -801,7 +801,7 @@ pci_conf_for_copyout(const struct pci_conf *pcp, union pci_conf_union *pcup, #ifdef PRE7_COMPAT #ifdef COMPAT_FREEBSD32 - case PCIOCGETCONF_OLD32: + case PCIOCGETCONF_FREEBSD6_32: pcup->pco32.pc_sel.pc_bus = pcp->pc_sel.pc_bus; pcup->pco32.pc_sel.pc_dev = pcp->pc_sel.pc_dev; pcup->pco32.pc_sel.pc_func = pcp->pc_sel.pc_func; @@ -820,7 +820,7 @@ pci_conf_for_copyout(const struct pci_conf *pcp, union pci_conf_union *pcup, return; #endif /* COMPAT_FREEBSD32 */ - case PCIOCGETCONF_OLD: + case PCIOCGETCONF_FREEBSD6: pcup->pco.pc_sel.pc_bus = pcp->pc_sel.pc_bus; pcup->pco.pc_sel.pc_dev = pcp->pc_sel.pc_dev; pcup->pco.pc_sel.pc_func = pcp->pc_sel.pc_func; @@ -1028,9 +1028,9 @@ pci_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *t union pci_conf_union pcu; #ifdef PRE7_COMPAT struct pci_io iodata; - struct pci_io_old *io_old; + struct pci_io_freebsd6 *io_freebsd6; - io_old = NULL; + io_freebsd6 = NULL; #endif /* @@ -1045,9 +1045,9 @@ pci_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *t case PCIOCGETCONF32: #endif #ifdef PRE7_COMPAT - case PCIOCGETCONF_OLD: + case PCIOCGETCONF_FREEBSD6: #ifdef COMPAT_FREEBSD32 - case PCIOCGETCONF_OLD32: + case PCIOCGETCONF_FREEBSD6_32: #endif #endif case PCIOCGETBAR: @@ -1070,9 +1070,9 @@ pci_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *t case PCIOCGETCONF32: #endif #ifdef PRE7_COMPAT - case PCIOCGETCONF_OLD: + case PCIOCGETCONF_FREEBSD6: #ifdef COMPAT_FREEBSD32 - case PCIOCGETCONF_OLD32: + case PCIOCGETCONF_FREEBSD6_32: #endif #endif cio = malloc(sizeof(struct pci_conf_io), M_TEMP, @@ -1258,16 +1258,16 @@ getconfexit: break; #ifdef PRE7_COMPAT - case PCIOCREAD_OLD: - case PCIOCWRITE_OLD: - io_old = (struct pci_io_old *)data; + case PCIOCREAD_FREEBSD6: + case PCIOCWRITE_FREEBSD6: + io_freebsd6 = (struct pci_io_freebsd6 *)data; iodata.pi_sel.pc_domain = 0; - iodata.pi_sel.pc_bus = io_old->pi_sel.pc_bus; - iodata.pi_sel.pc_dev = io_old->pi_sel.pc_dev; - iodata.pi_sel.pc_func = io_old->pi_sel.pc_func; - iodata.pi_reg = io_old->pi_reg; - iodata.pi_width = io_old->pi_width; - iodata.pi_data = io_old->pi_data; + iodata.pi_sel.pc_bus = io_freebsd6->pi_sel.pc_bus; + iodata.pi_sel.pc_dev = io_freebsd6->pi_sel.pc_dev; + iodata.pi_sel.pc_func = io_freebsd6->pi_sel.pc_func; + iodata.pi_reg = io_freebsd6->pi_reg; + iodata.pi_width = io_freebsd6->pi_width; + iodata.pi_data = io_freebsd6->pi_data; data = (caddr_t)&iodata; /* FALLTHROUGH */ #endif @@ -1295,7 +1295,7 @@ getconfexit: io->pi_sel.pc_func); if (pcidev) { #ifdef PRE7_COMPAT - if (cmd == PCIOCWRITE || cmd == PCIOCWRITE_OLD) + if (cmd == PCIOCWRITE || cmd == PCIOCWRITE_FREEBSD6) #else if (cmd == PCIOCWRITE) #endif @@ -1304,8 +1304,8 @@ getconfexit: io->pi_data, io->pi_width); #ifdef PRE7_COMPAT - else if (cmd == PCIOCREAD_OLD) - io_old->pi_data = + else if (cmd == PCIOCREAD_FREEBSD6) + io_freebsd6->pi_data = pci_read_config(pcidev, io->pi_reg, io->pi_width); @@ -1318,8 +1318,8 @@ getconfexit: error = 0; } else { #ifdef COMPAT_FREEBSD4 - if (cmd == PCIOCREAD_OLD) { - io_old->pi_data = -1; + if (cmd == PCIOCREAD_FREEBSD6) { + io_freebsd6->pi_data = -1; error = 0; } else #endif