1/* 2 * Copyright (c) 2012, The Linux Foundation. All rights reserved. 3 * Permission to use, copy, modify, and/or distribute this software for 4 * any purpose with or without fee is hereby granted, provided that the 5 * above copyright notice and this permission notice appear in all copies. 6 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 7 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 8 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 9 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 10 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 11 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 12 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 13 */ 14 15 16 17#ifndef _GARUDA_REDUCED_ACL_H_ 18#define _GARUDA_REDUCED_ACL_H_ 19 20#ifdef __cplusplus 21extern "C" { 22#endif /* __cplusplus */ 23 24#include "common/sw.h" 25 26 sw_error_t 27 garuda_acl_rule_write(a_uint32_t dev_id, a_uint32_t rule_idx, a_uint32_t vlu[8], 28 a_uint32_t msk[8]); 29 30 sw_error_t 31 garuda_acl_action_write(a_uint32_t dev_id, a_uint32_t act_idx, 32 a_uint32_t act); 33 34 sw_error_t 35 garuda_acl_slct_write(a_uint32_t dev_id, a_uint32_t slct_idx, 36 a_uint32_t slct[8]); 37 38 sw_error_t 39 garuda_acl_rule_read(a_uint32_t dev_id, a_uint32_t rule_idx, a_uint32_t vlu[8], 40 a_uint32_t msk[8]); 41 42 sw_error_t 43 garuda_acl_action_read(a_uint32_t dev_id, a_uint32_t act_idx, 44 a_uint32_t * act); 45 46 sw_error_t 47 garuda_acl_slct_read(a_uint32_t dev_id, a_uint32_t slct_idx, 48 a_uint32_t slct[8]); 49 50#ifdef __cplusplus 51} 52#endif /* __cplusplus */ 53#endif /* _GARUDA_REDUCED_ACL_H_ */ 54 55