Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Apr 2016 14:12:40 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r298344 - head/sys/arm64/cavium
Message-ID:  <201604201412.u3KECeAY061383@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Wed Apr 20 14:12:40 2016
New Revision: 298344
URL: https://svnweb.freebsd.org/changeset/base/298344

Log:
  Group the ThunderX PCIe PEM newbus methods to help find them.
  
  Obtained from:	ABT Systems Ltd
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/arm64/cavium/thunder_pcie_pem.c

Modified: head/sys/arm64/cavium/thunder_pcie_pem.c
==============================================================================
--- head/sys/arm64/cavium/thunder_pcie_pem.c	Wed Apr 20 13:23:06 2016	(r298343)
+++ head/sys/arm64/cavium/thunder_pcie_pem.c	Wed Apr 20 14:12:40 2016	(r298344)
@@ -161,9 +161,8 @@ static device_method_t thunder_pem_metho
 	DEVMETHOD(device_probe,			thunder_pem_probe),
 	DEVMETHOD(device_attach,		thunder_pem_attach),
 	DEVMETHOD(device_detach,		thunder_pem_detach),
-	DEVMETHOD(pcib_maxslots,		thunder_pem_maxslots),
-	DEVMETHOD(pcib_read_config,		thunder_pem_read_config),
-	DEVMETHOD(pcib_write_config,		thunder_pem_write_config),
+
+	/* Bus interface */
 	DEVMETHOD(bus_read_ivar,		thunder_pem_read_ivar),
 	DEVMETHOD(bus_write_ivar,		thunder_pem_write_ivar),
 	DEVMETHOD(bus_alloc_resource,		thunder_pem_alloc_resource),
@@ -174,6 +173,10 @@ static device_method_t thunder_pem_metho
 	DEVMETHOD(bus_setup_intr,		bus_generic_setup_intr),
 	DEVMETHOD(bus_teardown_intr,		bus_generic_teardown_intr),
 
+	/* pcib interface */
+	DEVMETHOD(pcib_maxslots,		thunder_pem_maxslots),
+	DEVMETHOD(pcib_read_config,		thunder_pem_read_config),
+	DEVMETHOD(pcib_write_config,		thunder_pem_write_config),
 	DEVMETHOD(pcib_map_msi,			thunder_pem_map_msi),
 	DEVMETHOD(pcib_alloc_msix,		thunder_pem_alloc_msix),
 	DEVMETHOD(pcib_release_msix,		thunder_pem_release_msix),



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604201412.u3KECeAY061383>