1 // Copyright 2018 The Fuchsia Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #pragma once
6 
7 #include <zircon/compiler.h>
8 #include <zircon/types.h>
9 
10 __BEGIN_CDECLS
11 
12 #define EISA_ID(a, b, c) ((((uint32_t)(a) & 0xFF) << 16) | \
13                           (((uint32_t)(b) & 0xFF) << 8)  | \
14                            ((uint32_t)(c) & 0xFF))
15 
16 // Lookup an EISA vendor name based on its assigned 3 character EISA vendor ID.
17 // Use the EISA_ID macro to generate the ID.  Returns NULL if no match is found
18 // in the LUT.
19 const char* lookup_eisa_vid(uint32_t eisa_vid);
20 
21 __END_CDECLS
22 
23