diff --git a/device.go b/device.go index 98a2c27f88..487cbd502c 100644 --- a/device.go +++ b/device.go @@ -35,8 +35,7 @@ const ( ) const ( - rootBusPath = "/devices/pci0000:00" - pciBusMode = 0220 + pciBusMode = 0220 ) var ( diff --git a/device_amd64.go b/device_amd64.go new file mode 100644 index 0000000000..7d7d53071b --- /dev/null +++ b/device_amd64.go @@ -0,0 +1,12 @@ +// +// Copyright (c) 2019 Intel Corporation +// Copyright (c) 2019 ARM Limited +// +// SPDX-License-Identifier: Apache-2.0 +// + +package main + +const ( + rootBusPath = "/devices/pci0000:00" +) diff --git a/device_arm64.go b/device_arm64.go new file mode 100644 index 0000000000..9ccae80941 --- /dev/null +++ b/device_arm64.go @@ -0,0 +1,9 @@ +// +// Copyright (c) 2019 ARM Limited +// +// SPDX-License-Identifier: Apache-2.0 +// + +package main + +const rootBusPath = "/devices/platform/4010000000.pcie/pci0000:00" diff --git a/device_ppc64le.go b/device_ppc64le.go new file mode 100644 index 0000000000..7d7d53071b --- /dev/null +++ b/device_ppc64le.go @@ -0,0 +1,12 @@ +// +// Copyright (c) 2019 Intel Corporation +// Copyright (c) 2019 ARM Limited +// +// SPDX-License-Identifier: Apache-2.0 +// + +package main + +const ( + rootBusPath = "/devices/pci0000:00" +) diff --git a/device_s390x.go b/device_s390x.go new file mode 100644 index 0000000000..7d7d53071b --- /dev/null +++ b/device_s390x.go @@ -0,0 +1,12 @@ +// +// Copyright (c) 2019 Intel Corporation +// Copyright (c) 2019 ARM Limited +// +// SPDX-License-Identifier: Apache-2.0 +// + +package main + +const ( + rootBusPath = "/devices/pci0000:00" +)