pli.h (1239B)
1 /* 2 * 3 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 4 * 5 * Copyright 2007-2019 Broadcom Inc. All rights reserved. 6 * 7 * File: pli.h 8 * Purpose: 9 */ 10 11 #ifndef _PLI_H_ 12 #define _PLI_H_ 13 14 #include <sys/types.h> 15 #include <soc/types.h> 16 17 #include "cmicsim.h" 18 #include "dma.h" 19 20 #include <netinet/in.h> 21 #include <arpa/inet.h> 22 #include <bde/pli/verinet.h> 23 24 25 /* Return values for process request */ 26 #define PR_REQUEST_HANDLED 1 27 #define PR_NO_REQUEST 2 28 #define PR_ALL_DONE 0 29 #define PR_ERROR -1 30 31 extern int pli_reset_service(pcid_info_t *pcid_info); 32 extern uint32 pli_getreg_service(pcid_info_t * pcid_info, int unit, 33 uint32 type, uint32 regnum); 34 extern uint32 pli_setreg_service(pcid_info_t * pcid_info, int unit, 35 uint32 type, uint32 regnum, uint32 value); 36 extern uint32 pli_cmice_getreg_service(pcid_info_t * pcid_info, int unit, 37 uint32 type, uint32 regnum, uint32 *value); 38 extern uint32 pli_cmice_setreg_service(pcid_info_t * pcid_info, int unit, 39 uint32 type, uint32 regnum, uint32 value); 40 41 #endif /* _PLI_H_ */