Linux Audio

Check our new training course

Loading...
v6.8
 1/* SPDX-License-Identifier: GPL-2.0 */
 2
 3#include <linux/platform_device.h>
 4
 5#ifndef _SOFTING_DEVICE_H_
 6#define _SOFTING_DEVICE_H_
 7
 8/* softing firmware directory prefix */
 9#define fw_dir "softing-4.6/"
10
11struct softing_platform_data {
12	unsigned int manf;
13	unsigned int prod;
14	/*
15	 * generation
16	 * 1st with NEC or SJA1000
17	 * 8bit, exclusive interrupt, ...
18	 * 2nd only SJA1000
19	 * 16bit, shared interrupt
20	 */
21	int generation;
22	int nbus; /* # buses 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;
33	/*
34	 * reset() function
35	 * bring pdev in or out of reset, depending on value
36	 */
37	int (*reset)(struct platform_device *pdev, int value);
38	int (*enable_irq)(struct platform_device *pdev, int value);
39};
40
41#endif
v4.6
 
 1
 2#include <linux/platform_device.h>
 3
 4#ifndef _SOFTING_DEVICE_H_
 5#define _SOFTING_DEVICE_H_
 6
 7/* softing firmware directory prefix */
 8#define fw_dir "softing-4.6/"
 9
10struct softing_platform_data {
11	unsigned int manf;
12	unsigned int prod;
13	/*
14	 * generation
15	 * 1st with NEC or SJA1000
16	 * 8bit, exclusive interrupt, ...
17	 * 2nd only SJA1000
18	 * 16bit, shared interrupt
19	 */
20	int generation;
21	int nbus; /* # busses on device */
22	unsigned int freq; /* operating frequency in Hz */
23	unsigned int max_brp;
24	unsigned int max_sjw;
25	unsigned long dpram_size;
26	const char *name;
27	struct {
28		unsigned long offs;
29		unsigned long addr;
30		const char *fw;
31	} boot, load, app;
32	/*
33	 * reset() function
34	 * bring pdev in or out of reset, depending on value
35	 */
36	int (*reset)(struct platform_device *pdev, int value);
37	int (*enable_irq)(struct platform_device *pdev, int value);
38};
39
40#endif