From owner-freebsd-drivers@freebsd.org Thu Apr 14 23:40:12 2016 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3F321ADA64E for ; Thu, 14 Apr 2016 23:40:12 +0000 (UTC) (envelope-from Lakshmi.Reguna@caviumnetworks.com) Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0063.outbound.protection.outlook.com [207.46.100.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EE4641679 for ; Thu, 14 Apr 2016 23:40:11 +0000 (UTC) (envelope-from Lakshmi.Reguna@caviumnetworks.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-caviumnetworks-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ZtuL3TE4lu5kPHOp1MPa74LtVSlkbOenOBCe3wd0nmo=; b=dNGiMePr8Mso03yQQX1+aDrI1/3YWPv/0r9lLXG/utb1Xfl0Aljx1krtu0kb36QVEAlej2oeKAtvM2SECs0961hluPCWqnkexJcDgWZvvpLqlicCmCM+XbvrObzfUaycxHU500b39eW9XMvfwBUZ96tRB7dOLHBYekBbpAIWmfY= Received: from BL2PR07MB2369.namprd07.prod.outlook.com (10.167.101.23) by BL2PR07MB2369.namprd07.prod.outlook.com (10.167.101.23) with Microsoft SMTP Server (TLS) id 15.1.453.26; Thu, 14 Apr 2016 23:40:02 +0000 Received: from BL2PR07MB2369.namprd07.prod.outlook.com ([10.167.101.23]) by BL2PR07MB2369.namprd07.prod.outlook.com ([10.167.101.23]) with mapi id 15.01.0453.030; Thu, 14 Apr 2016 23:40:02 +0000 From: "Reguna, Lakshmi" To: "freebsd-drivers@freebsd.org" Subject: Porting FreeBSD driver from 8.4 to 10.3 - PCI_ENABLE_MSI definition missing Thread-Topic: Porting FreeBSD driver from 8.4 to 10.3 - PCI_ENABLE_MSI definition missing Thread-Index: AdGWpvY6Tuea8Mi4QaORbnuBxyoTNg== Date: Thu, 14 Apr 2016 23:40:02 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Lakshmi.Reguna@caviumnetworks.com; x-originating-ip: [64.2.3.194] x-ms-office365-filtering-correlation-id: aeda5a22-d466-4cfe-2068-08d364be19da x-microsoft-exchange-diagnostics: 1; BL2PR07MB2369; 5:vlE+IWKY5ICoyKXCUaoN9pe8XzGiaF+F7wF4YNiBMxq8JL3f7lSZxfJX9sKKz/vG2lqyCDzJMfxirhPWSmr1/Fa7Mj7SH1/2xAWFuw1s0ckvoRg3/1py098YElg/kpzHm2+Rtz3/WP6F9sOzVGrpOw==; 24:3unfOGVlMj5LzhKLAXkJA/4tWMYG22Fk2RK5No5OLvpAfhOWQlYKbgmS31enkE06C1LcR6MGNTT4XvD+Q6989KkpYnZE+iyJjOZZBIlQXpY= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR07MB2369; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:BL2PR07MB2369; BCL:0; PCL:0; RULEID:; SRVR:BL2PR07MB2369; x-forefront-prvs: 0912297777 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(10400500002)(86362001)(122556002)(87936001)(1220700001)(92566002)(450100001)(74316001)(6116002)(102836003)(99286002)(5002640100001)(110136002)(2900100001)(790700001)(2906002)(3846002)(19625215002)(66066001)(189998001)(586003)(107886002)(1096002)(3660700001)(5003600100002)(81166005)(77096005)(15975445007)(19300405004)(164054004)(50986999)(3280700002)(5630700001)(76576001)(16236675004)(5004730100002)(54356999)(33656002)(229853001)(11100500001)(2501003)(2351001)(5008740100001)(19580395003)(9686002)(5640700001); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR07MB2369; H:BL2PR07MB2369.namprd07.prod.outlook.com; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; received-spf: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Apr 2016 23:40:02.2004 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR07MB2369 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2016 23:40:12 -0000 Hi, I am attempting to port a freebsd driver from 8.4 to 10.3. I ran into the f= ollowing compilation error. I am not able to find any file which declares P= CI_ENABLE_MSI, PCI_ENABLE_MSIX, PCI_DISABLE_MSI etc. The actual definitio= n of PCI_ENABLE_MSI seems to point to pci_enable_msi_method in pci.c. Any = thoughts on what might be missing ? DEVMETHOD(pci_enable_msi, pci_enable_msi_method), Build Error: @/dev/pci/pcivar.h:459:5: error: implicit declaration of function 'PCI_ENAB= LE_MSI' is invalid in C99 [-Werror,-Wimplicit-function-declaration] PCI_ENABLE_MSI(device_get_parent(dev), dev, address, data); @/dev/pci/pcivar.h:465:5: error: implicit declaration of function 'PCI_ENAB= LE_MSIX' is invalid in C99 [-Werror,-Wimplicit-function-declaration] PCI_ENABLE_MSIX(device_get_parent(dev), dev, index, address, data); @/dev/pci/pcivar.h:471:5: error: implicit declaration of function 'PCI_DISA= BLE_MSI' is invalid in C99 [-Werror,-Wimplicit-function-declaration] PCI_DISABLE_MSI(device_get_parent(dev), dev); ^ @/dev/pci/pcivar.h:501:13: error: implicit declaration of function 'PCI_MSI= X_PBA_BAR' is invalid in C99 [-Werror,-Wimplicit-function-declaration] return (PCI_MSIX_PBA_BAR(device_get_parent(dev), dev)); ^ @/dev/pci/pcivar.h:507:13: error: implicit declaration of function 'PCI_MSI= X_TABLE_BAR' is invalid in C99 [-Werror,-Wimplicit-function-declaration] return (PCI_MSIX_TABLE_BAR(device_get_parent(dev), dev)); @/dev/pci/pcivar.h:520:13: error: implicit declaration of function 'PCI_CHI= LD_ADDED' is invalid in C99 [-Werror,-Wimplicit-function-declaration] return (PCI_CHILD_ADDED(device_get_parent(dev), dev)); Thanks, Lakshmi Reguna Lead Technical Marketing Engineer Cavium Inc. 2315 N First St San Jose CA 95131 408-943-4652 (o)