11191f715SRyan Stone /*- 2*faf139ccSRyan Stone * Copyright (c) 2014 Sandvine Inc. 31191f715SRyan Stone * All rights reserved. 41191f715SRyan Stone * 51191f715SRyan Stone * Redistribution and use in source and binary forms, with or without 61191f715SRyan Stone * modification, are permitted provided that the following conditions 71191f715SRyan Stone * are met: 81191f715SRyan Stone * 1. Redistributions of source code must retain the above copyright 91191f715SRyan Stone * notice unmodified, this list of conditions, and the following 101191f715SRyan Stone * disclaimer. 111191f715SRyan Stone * 2. Redistributions in binary form must reproduce the above copyright 121191f715SRyan Stone * notice, this list of conditions and the following disclaimer in the 131191f715SRyan Stone * documentation and/or other materials provided with the distribution. 141191f715SRyan Stone * 151191f715SRyan Stone * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 161191f715SRyan Stone * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 171191f715SRyan Stone * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 181191f715SRyan Stone * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 191191f715SRyan Stone * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 201191f715SRyan Stone * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 211191f715SRyan Stone * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 221191f715SRyan Stone * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 231191f715SRyan Stone * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 241191f715SRyan Stone * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 251191f715SRyan Stone */ 261191f715SRyan Stone 271191f715SRyan Stone #ifndef _SCHEMA_PRIVATE_H_ 281191f715SRyan Stone #define _SCHEMA_PRIVATE_H_ 291191f715SRyan Stone 30bdc48af2SRyan Stone int pci_iov_validate_schema(const nvlist_t *schema); 31bdc48af2SRyan Stone 321191f715SRyan Stone int pci_iov_schema_validate_config(const nvlist_t *, nvlist_t *); 331191f715SRyan Stone uint16_t pci_iov_config_get_num_vfs(const nvlist_t *); 341191f715SRyan Stone 351191f715SRyan Stone #endif 36