treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / net / can / softing / softing_platform.h
blob68a161547644e76d2f383502266591785916570f
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #include <linux/platform_device.h>
5 #ifndef _SOFTING_DEVICE_H_
6 #define _SOFTING_DEVICE_H_
8 /* softing firmware directory prefix */
9 #define fw_dir "softing-4.6/"
11 struct softing_platform_data {
12 unsigned int manf;
13 unsigned int prod;
15 * generation
16 * 1st with NEC or SJA1000
17 * 8bit, exclusive interrupt, ...
18 * 2nd only SJA1000
19 * 16bit, shared interrupt
21 int generation;
22 int nbus; /* # busses on device */
23 unsigned int freq; /* operating frequency in Hz */
24 unsigned int max_brp;
25 unsigned int max_sjw;
26 unsigned long dpram_size;
27 const char *name;
28 struct {
29 unsigned long offs;
30 unsigned long addr;
31 const char *fw;
32 } boot, load, app;
34 * reset() function
35 * bring pdev in or out of reset, depending on value
37 int (*reset)(struct platform_device *pdev, int value);
38 int (*enable_irq)(struct platform_device *pdev, int value);
41 #endif