xref: /openbmc/linux/drivers/net/ethernet/freescale/fman/fman_keygen.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1*8585bdadSSean Anderson /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later */
27472f4f2SIordache Florinel-R70177 /*
37472f4f2SIordache Florinel-R70177  * Copyright 2017 NXP
47472f4f2SIordache Florinel-R70177  */
57472f4f2SIordache Florinel-R70177 
67472f4f2SIordache Florinel-R70177 #ifndef __KEYGEN_H
77472f4f2SIordache Florinel-R70177 #define __KEYGEN_H
87472f4f2SIordache Florinel-R70177 
97472f4f2SIordache Florinel-R70177 #include <linux/io.h>
107472f4f2SIordache Florinel-R70177 
117472f4f2SIordache Florinel-R70177 struct fman_keygen;
127472f4f2SIordache Florinel-R70177 struct fman_kg_regs;
137472f4f2SIordache Florinel-R70177 
147472f4f2SIordache Florinel-R70177 struct fman_keygen *keygen_init(struct fman_kg_regs __iomem *keygen_regs);
157472f4f2SIordache Florinel-R70177 
167472f4f2SIordache Florinel-R70177 int keygen_port_hashing_init(struct fman_keygen *keygen, u8 hw_port_id,
177472f4f2SIordache Florinel-R70177 			     u32 hash_base_fqid, u32 hash_size);
187472f4f2SIordache Florinel-R70177 
197472f4f2SIordache Florinel-R70177 #endif /* __KEYGEN_H */
20