/
usr
/
src
/
linux-headers-5.15.0-190
/
include
/
linux
/
platform_data
/
/usr/src/linux-headers-5.15.0-190/include/linux/platform_data
mkdir
upload
Name
Size
Mode
Actions
gpio/
-
0755
rm
media/
-
0755
rm
txx9/
-
0755
rm
x86/
-
0755
rm
ad5449.h
1196
0644
edit
dl
rm
ad5755.h
2813
0644
edit
dl
rm
ad5761.h
1266
0644
edit
dl
rm
ad7266.h
1367
0644
edit
dl
rm
ad7791.h
530
0644
edit
dl
rm
ad7793.h
3842
0644
edit
dl
rm
ad7887.h
573
0644
edit
dl
rm
adau17x1.h
3597
0644
edit
dl
rm
adp5588.h
6707
0644
edit
dl
rm
adp8860.h
4720
0644
edit
dl
rm
adp8870.h
4624
0644
edit
dl
rm
ads7828.h
690
0644
edit
dl
rm
ams-delta-fiq.h
1657
0644
edit
dl
rm
apds990x.h
1876
0644
edit
dl
rm
arm-ux500-pm.h
566
0644
edit
dl
rm
asoc-imx-ssi.h
686
0644
edit
dl
rm
asoc-kirkwood.h
145
0644
edit
dl
rm
asoc-palm27x.h
152
0644
edit
dl
rm
asoc-s3c.h
1355
0644
edit
dl
rm
asoc-s3c24xx_simtec.h
746
0644
edit
dl
rm
asoc-ti-mcbsp.h
820
0644
edit
dl
rm
asoc-ux500-msp.h
433
0644
edit
dl
rm
ata-pxa.h
392
0644
edit
dl
rm
ata-samsung_cf.h
816
0644
edit
dl
rm
atmel.h
374
0644
edit
dl
rm
b53.h
1160
0644
edit
dl
rm
bcmgenet.h
402
0644
edit
dl
rm
bd6107.h
237
0644
edit
dl
rm
bh1770glc.h
1206
0644
edit
dl
rm
brcmfmac.h
6791
0644
edit
dl
rm
clk-da8xx-cfgchip.h
504
0644
edit
dl
rm
clk-davinci-pll.h
465
0644
edit
dl
rm
clk-fch.h
286
0644
edit
dl
rm
clk-s3c2410.h
518
0644
edit
dl
rm
cpuidle-exynos.h
361
0644
edit
dl
rm
cros_ec_chardev.h
1101
0644
edit
dl
rm
cros_ec_commands.h
182366
0644
edit
dl
rm
cros_ec_proto.h
8950
0644
edit
dl
rm
cros_ec_sensorhub.h
6259
0644
edit
dl
rm
cros_usbpd_notify.h
436
0644
edit
dl
rm
crypto-ux500.h
526
0644
edit
dl
rm
cyttsp4.h
1627
0644
edit
dl
rm
davinci-cpufreq.h
428
0644
edit
dl
rm
davinci_asp.h
3351
0644
edit
dl
rm
dma-dw.h
2633
0644
edit
dl
rm
dma-ep93xx.h
2746
0644
edit
dl
rm
dma-hsu.h
332
0644
edit
dl
rm
dma-imx.h
1875
0644
edit
dl
rm
dma-iop32x.h
3347
0644
edit
dl
rm
dma-mcf-edma.h
1147
0644
edit
dl
rm
dma-mmp_tdma.h
647
0644
edit
dl
rm
dma-mv_xor.h
375
0644
edit
dl
rm
dma-s3c24xx.h
1331
0644
edit
dl
rm
dma-ste-dma40.h
6176
0644
edit
dl
rm
dmtimer-omap.h
1982
0644
edit
dl
rm
ds620.h
430
0644
edit
dl
rm
dsa.h
1653
0644
edit
dl
rm
edma.h
2577
0644
edit
dl
rm
elm.h
1322
0644
edit
dl
rm
emif_plat.h
4010
0644
edit
dl
rm
eth-ep93xx.h
207
0644
edit
dl
rm
eth_ixp4xx.h
541
0644
edit
dl
rm
fb-s3c2410.h
2802
0644
edit
dl
rm
g762.h
698
0644
edit
dl
rm
gpio-ath79.h
330
0644
edit
dl
rm
gpio-davinci.h
854
0644
edit
dl
rm
gpio-htc-egpio.h
1660
0644
edit
dl
rm
gpio-omap.h
5776
0644
edit
dl
rm
gpio_backlight.h
253
0644
edit
dl
rm
gpmc-omap.h
5659
0644
edit
dl
rm
gsc_hwmon.h
1098
0644
edit
dl
rm
hirschmann-hellcreek.h
719
0644
edit
dl
rm
hsmmc-omap.h
2144
0644
edit
dl
rm
hwmon-s3c.h
1212
0644
edit
dl
rm
i2c-davinci.h
835
0644
edit
dl
rm
i2c-gpio.h
1072
0644
edit
dl
rm
i2c-imx.h
420
0644
edit
dl
rm
i2c-mux-gpio.h
955
0644
edit
dl
rm
i2c-mux-reg.h
1235
0644
edit
dl
rm
i2c-ocores.h
644
0644
edit
dl
rm
i2c-omap.h
1241
0644
edit
dl
rm
i2c-pca-platform.h
291
0644
edit
dl
rm
i2c-pxa.h
354
0644
edit
dl
rm
i2c-s3c2410.h
2929
0644
edit
dl
rm
i2c-xiic.h
853
0644
edit
dl
rm
ina2xx.h
412
0644
edit
dl
rm
intel-mid_wdt.h
456
0644
edit
dl
rm
invensense_mpu6050.h
865
0644
edit
dl
rm
iommu-omap.h
618
0644
edit
dl
rm
irda-pxaficp.h
704
0644
edit
dl
rm
irda-sa11x0.h
411
0644
edit
dl
rm
isl9305.h
487
0644
edit
dl
rm
itco_wdt.h
588
0644
edit
dl
rm
keyboard-pxa930_rotary.h
642
0644
edit
dl
rm
keyboard-spear.h
3897
0644
edit
dl
rm
keypad-ep93xx.h
1030
0644
edit
dl
rm
keypad-nomadik-ske.h
1196
0644
edit
dl
rm
keypad-omap.h
1332
0644
edit
dl
rm
keypad-pxa27x.h
2213
0644
edit
dl
rm
keyscan-davinci.h
517
0644
edit
dl
rm
lcd-mipid.h
586
0644
edit
dl
rm
leds-lm355x.h
1454
0644
edit
dl
rm
leds-lm3642.h
818
0644
edit
dl
rm
leds-lp55xx.h
2171
0644
edit
dl
rm
leds-omap.h
352
0644
edit
dl
rm
leds-s3c24xx.h
345
0644
edit
dl
rm
lm3630a_bl.h
1671
0644
edit
dl
rm
lm3639_bl.h
1401
0644
edit
dl
rm
lm8323.h
746
0644
edit
dl
rm
lp855x.h
4055
0644
edit
dl
rm
lp8727.h
1477
0644
edit
dl
rm
lp8755.h
1505
0644
edit
dl
rm
ltc4245.h
331
0644
edit
dl
rm
lv5207lp.h
273
0644
edit
dl
rm
max197.h
615
0644
edit
dl
rm
max732x.h
573
0644
edit
dl
rm
max3421-hcd.h
808
0644
edit
dl
rm
max6639.h
433
0644
edit
dl
rm
max6697.h
912
0644
edit
dl
rm
mcs.h
693
0644
edit
dl
rm
mdio-bcm-unimac.h
275
0644
edit
dl
rm
mdio-gpio.h
273
0644
edit
dl
rm
mfd-mcp-sa11x0.h
272
0644
edit
dl
rm
microchip-ksz.h
961
0644
edit
dl
rm
mlxcpld.h
885
0644
edit
dl
rm
mlxreg.h
4194
0644
edit
dl
rm
mmc-davinci.h
736
0644
edit
dl
rm
mmc-esdhc-mcf.h
447
0644
edit
dl
rm
mmc-mxcmmc.h
1099
0644
edit
dl
rm
mmc-omap.h
3381
0644
edit
dl
rm
mmc-pxamci.h
809
0644
edit
dl
rm
mmc-s3cmci.h
2004
0644
edit
dl
rm
mmc-sdhci-s3c.h
2278
0644
edit
dl
rm
mmp_audio.h
340
0644
edit
dl
rm
mmp_dma.h
350
0644
edit
dl
rm
mouse-pxa930_trkball.h
226
0644
edit
dl
rm
mtd-davinci-aemif.h
715
0644
edit
dl
rm
mtd-davinci.h
2447
0644
edit
dl
rm
mtd-nand-omap2.h
2049
0644
edit
dl
rm
mtd-nand-pxa3xx.h
812
0644
edit
dl
rm
mtd-nand-s3c2410.h
2101
0644
edit
dl
rm
mtd-orion_nand.h
520
0644
edit
dl
rm
mv88e6xxx.h
416
0644
edit
dl
rm
mv_usb.h
900
0644
edit
dl
rm
net-cw1200.h
2764
0644
edit
dl
rm
nfcmrvl.h
1262
0644
edit
dl
rm
ntc_thermistor.h
1292
0644
edit
dl
rm
omap-twl4030.h
1067
0644
edit
dl
rm
omap-wd-timer.h
901
0644
edit
dl
rm
omap1_bl.h
229
0644
edit
dl
rm
omapdss.h
897
0644
edit
dl
rm
pata_ixp4xx_cf.h
466
0644
edit
dl
rm
pca953x.h
690
0644
edit
dl
rm
pcf857x.h
1825
0644
edit
dl
rm
pcmcia-pxa2xx_viper.h
200
0644
edit
dl
rm
phy-da8xx-usb.h
474
0644
edit
dl
rm
pinctrl-single.h
425
0644
edit
dl
rm
pm33xx.h
2305
0644
edit
dl
rm
pxa2xx_udc.h
983
0644
edit
dl
rm
pxa_sdhci.h
1482
0644
edit
dl
rm
regulator-haptic.h
691
0644
edit
dl
rm
rtc-ds2404.h
467
0644
edit
dl
rm
rtc-v3020.h
1057
0644
edit
dl
rm
s3c-hsotg.h
1064
0644
edit
dl
rm
s3c-hsudc.h
1069
0644
edit
dl
rm
sa11x0-serial.h
874
0644
edit
dl
rm
sc18is602.h
401
0644
edit
dl
rm
sdhci-pic32.h
360
0644
edit
dl
rm
serial-omap.h
1024
0644
edit
dl
rm
serial-sccnxp.h
1938
0644
edit
dl
rm
sgi-w1.h
222
0644
edit
dl
rm
shmob_drm.h
2601
0644
edit
dl
rm
sht3x.h
342
0644
edit
dl
rm
shtc1.h
303
0644
edit
dl
rm
si5351.h
3634
0644
edit
dl
rm
simplefb.h
2181
0644
edit
dl
rm
spi-clps711x.h
421
0644
edit
dl
rm
spi-davinci.h
2308
0644
edit
dl
rm
spi-ep93xx.h
311
0644
edit
dl
rm
spi-mt65xx.h
361
0644
edit
dl
rm
spi-omap2-mcspi.h
475
0644
edit
dl
rm
spi-s3c64xx.h
2057
0644
edit
dl
rm
ssm2518.h
501
0644
edit
dl
rm
st33zp24.h
367
0644
edit
dl
rm
st_sensors_pdata.h
966
0644
edit
dl
rm
syscon.h
163
0644
edit
dl
rm
tda9950.h
282
0644
edit
dl
rm
ti-aemif.h
1108
0644
edit
dl
rm
ti-prm.h
524
0644
edit
dl
rm
ti-sysc.h
5067
0644
edit
dl
rm
timer-ixp4xx.h
244
0644
edit
dl
rm
touchscreen-s3c2410.h
595
0644
edit
dl
rm
tsc2007.h
655
0644
edit
dl
rm
tsl2563.h
180
0644
edit
dl
rm
tsl2772.h
3819
0644
edit
dl
rm
uio_dmem_genirq.h
800
0644
edit
dl
rm
uio_pruss.h
828
0644
edit
dl
rm
usb-davinci.h
596
0644
edit
dl
rm
usb-ehci-orion.h
440
0644
edit
dl
rm
usb-musb-ux500.h
558
0644
edit
dl
rm
usb-ohci-pxa27x.h
925
0644
edit
dl
rm
usb-ohci-s3c2410.h
941
0644
edit
dl
rm
usb-omap.h
2881
0644
edit
dl
rm
usb-omap1.h
1531
0644
edit
dl
rm
usb-pxa3xx-ulpi.h
675
0644
edit
dl
rm
usb-s3c2410_udc.h
1069
0644
edit
dl
rm
usb3503.h
409
0644
edit
dl
rm
ux500_wdt.h
313
0644
edit
dl
rm
video-ep93xx.h
1525
0644
edit
dl
rm
video-imxfb.h
1796
0644
edit
dl
rm
video-mx3fb.h
1427
0644
edit
dl
rm
video-pxafb.h
5354
0644
edit
dl
rm
video_s3c.h
1756
0644
edit
dl
rm
voltage-omap.h
1180
0644
edit
dl
rm
wan_ixp4xx_hss.h
465
0644
edit
dl
rm
wilco-ec.h
7076
0644
edit
dl
rm
wiznet.h
511
0644
edit
dl
rm
wkup_m3.h
542
0644
edit
dl
rm
xilinx-ll-temac.h
1320
0644
edit
dl
rm
xtalk-bridge.h
437
0644
edit
dl
rm
zforce_ts.h
313
0644
edit
dl
rm
Edit:
/usr/src/linux-headers-5.15.0-190/include/linux/platform_data/brcmfmac.h
(6791B)
/* * Copyright (c) 201 Broadcom Corporation * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef _LINUX_BRCMFMAC_PLATFORM_H #define _LINUX_BRCMFMAC_PLATFORM_H #define BRCMFMAC_PDATA_NAME "brcmfmac" #define BRCMFMAC_COUNTRY_BUF_SZ 4 /* * Platform specific driver functions and data. Through the platform specific * device data functions and data can be provided to help the brcmfmac driver to * operate with the device in combination with the used platform. */ /** * Note: the brcmfmac can be loaded as module or be statically built-in into * the kernel. If built-in then do note that it uses module_init (and * module_exit) routines which equal device_initcall. So if you intend to * create a module with the platform specific data for the brcmfmac and have * it built-in to the kernel then use a higher initcall then device_initcall * (see init.h). If this is not done then brcmfmac will load without problems * but will not pickup the platform data. * * When the driver does not "detect" platform driver data then it will continue * without reporting anything and just assume there is no data needed. Which is * probably true for most platforms. */ /** * enum brcmf_bus_type - Bus type identifier. Currently SDIO, USB and PCIE are * supported. */ enum brcmf_bus_type { BRCMF_BUSTYPE_SDIO, BRCMF_BUSTYPE_USB, BRCMF_BUSTYPE_PCIE }; /** * struct brcmfmac_sdio_pd - SDIO Device specific platform data. * * @txglomsz: SDIO txglom size. Use 0 if default of driver is to be * used. * @drive_strength: is the preferred drive_strength to be used for the SDIO * pins. If 0 then a default value will be used. This is * the target drive strength, the exact drive strength * which will be used depends on the capabilities of the * device. * @oob_irq_supported: does the board have support for OOB interrupts. SDIO * in-band interrupts are relatively slow and for having * less overhead on interrupt processing an out of band * interrupt can be used. If the HW supports this then * enable this by setting this field to true and configure * the oob related fields. * @oob_irq_nr, * @oob_irq_flags: the OOB interrupt information. The values are used for * registering the irq using request_irq function. * @broken_sg_support: flag for broken sg list support of SDIO host controller. * Set this to true if the SDIO host controller has higher * align requirement than 32 bytes for each scatterlist * item. * @sd_head_align: alignment requirement for start of data buffer. * @sd_sgentry_align: length alignment requirement for each sg entry. * @reset: This function can get called if the device communication * broke down. This functionality is particularly useful in * case of SDIO type devices. It is possible to reset a * dongle via sdio data interface, but it requires that * this is fully functional. This function is chip/module * specific and this function should return only after the * complete reset has completed. */ struct brcmfmac_sdio_pd { int txglomsz; unsigned int drive_strength; bool oob_irq_supported; unsigned int oob_irq_nr; unsigned long oob_irq_flags; bool broken_sg_support; unsigned short sd_head_align; unsigned short sd_sgentry_align; void (*reset)(void); }; /** * struct brcmfmac_pd_cc_entry - Struct for translating user space country code * (iso3166) to firmware country code and * revision. * * @iso3166: iso3166 alpha 2 country code string. * @cc: firmware country code string. * @rev: firmware country code revision. */ struct brcmfmac_pd_cc_entry { char iso3166[BRCMFMAC_COUNTRY_BUF_SZ]; char cc[BRCMFMAC_COUNTRY_BUF_SZ]; s32 rev; }; /** * struct brcmfmac_pd_cc - Struct for translating country codes as set by user * space to a country code and rev which can be used by * firmware. * * @table_size: number of entries in table (> 0) * @table: array of 1 or more elements with translation information. */ struct brcmfmac_pd_cc { int table_size; struct brcmfmac_pd_cc_entry table[0]; }; /** * struct brcmfmac_pd_device - Device specific platform data. (id/rev/bus_type) * is the unique identifier of the device. * * @id: ID of the device for which this data is. In case of SDIO * or PCIE this is the chipid as identified by chip.c In * case of USB this is the chipid as identified by the * device query. * @rev: chip revision, see id. * @bus_type: The type of bus. Some chipid/rev exist for different bus * types. Each bus type has its own set of settings. * @feature_disable: Bitmask of features to disable (override), See feature.c * in brcmfmac for details. * @country_codes: If available, pointer to struct for translating country * codes. * @bus: Bus specific (union) device settings. Currently only * SDIO. */ struct brcmfmac_pd_device { unsigned int id; unsigned int rev; enum brcmf_bus_type bus_type; unsigned int feature_disable; struct brcmfmac_pd_cc *country_codes; union { struct brcmfmac_sdio_pd sdio; } bus; }; /** * struct brcmfmac_platform_data - BRCMFMAC specific platform data. * * @power_on: This function is called by the brcmfmac driver when the module * gets loaded. This can be particularly useful for low power * devices. The platform spcific routine may for example decide to * power up the complete device. If there is no use-case for this * function then provide NULL. * @power_off: This function is called by the brcmfmac when the module gets * unloaded. At this point the devices can be powered down or * otherwise be reset. So if an actual power_off is not supported * but reset is supported by the devices then reset the devices * when this function gets called. This can be particularly useful * for low power devices. If there is no use-case for this * function then provide NULL. */ struct brcmfmac_platform_data { void (*power_on)(void); void (*power_off)(void); char *fw_alternative_path; int device_count; struct brcmfmac_pd_device devices[0]; }; #endif /* _LINUX_BRCMFMAC_PLATFORM_H */
Save
cmd:
run