github.com/ratrocket/u-root@v0.0.0-20180201221235-1cf9f48ee2cf/pkg/pci/types.go (about) 1 // Copyright 2012-2017 the u-root Authors. All rights reserved 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package pci 6 7 type busReader interface { 8 Read() (Devices, error) 9 } 10 11 // Vendor is a PCI vendor human readable label. It contains a map of one or 12 // more Devices keyed by hex ID. 13 type Vendor struct { 14 Name string 15 Devices map[string]Device 16 } 17 18 // Device is a PCI device human readable label 19 type Device string