xref: /linux/drivers/net/ethernet/freescale/fman/fman_keygen.h (revision 3d0fe49454652117522f60bfbefb978ba0e5300b)
1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later */
2 /*
3  * Copyright 2017 NXP
4  */
5 
6 #ifndef __KEYGEN_H
7 #define __KEYGEN_H
8 
9 #include <linux/io.h>
10 
11 struct fman_keygen;
12 struct fman_kg_regs;
13 
14 struct fman_keygen *keygen_init(struct fman_kg_regs __iomem *keygen_regs);
15 
16 int keygen_port_hashing_init(struct fman_keygen *keygen, u8 hw_port_id,
17 			     u32 hash_base_fqid, u32 hash_size);
18 
19 #endif /* __KEYGEN_H */
20