PATH:
usr
/
src
/
linux-headers-5.4.0-216
/
include
/
linux
/
mfd
/* SPDX-License-Identifier: GPL-2.0-only */ /* * drivers/mfd/mfd-core.h * * core MFD support * Copyright (c) 2006 Ian Molton * Copyright (c) 2007 Dmitry Baryshkov */ #ifndef MFD_CORE_H #define MFD_CORE_H #include <linux/platform_device.h> struct irq_domain; struct property_entry; /* Matches ACPI PNP id, either _HID or _CID, or ACPI _ADR */ struct mfd_cell_acpi_match { const char *pnpid; const unsigned long long adr; }; /* * This struct describes the MFD part ("cell"). * After registration the copy of this structure will become the platform data * of the resulting platform_device */ struct mfd_cell { const char *name; int id; /* refcounting for multiple drivers to use a single cell */ atomic_t *usage_count; int (*enable)(struct platform_device *dev); int (*disable)(struct platform_device *dev); int (*suspend)(struct platform_device *dev); int (*resume)(struct platform_device *dev); /* platform data passed to the sub devices drivers */ void *platform_data; size_t pdata_size; /* device properties passed to the sub devices drivers */ struct property_entry *properties; /* * Device Tree compatible string * See: Documentation/devicetree/usage-model.txt Chapter 2.2 for details */ const char *of_compatible; /* Matches ACPI */ const struct mfd_cell_acpi_match *acpi_match; /* * These resources can be specified relative to the parent device. * For accessing hardware you should use resources from the platform dev */ int num_resources; const struct resource *resources; /* don't check for resource conflicts */ bool ignore_resource_conflicts; /* * Disable runtime PM callbacks for this subdevice - see * pm_runtime_no_callbacks(). */ bool pm_runtime_no_callbacks; /* A list of regulator supplies that should be mapped to the MFD * device rather than the child device when requested */ const char * const *parent_supplies; int num_parent_supplies; }; /* * Convenience functions for clients using shared cells. Refcounting * happens automatically, with the cell's enable/disable callbacks * being called only when a device is first being enabled or no other * clients are making use of it. */ extern int mfd_cell_enable(struct platform_device *pdev); extern int mfd_cell_disable(struct platform_device *pdev); /* * "Clone" multiple platform devices for a single cell. This is to be used * for devices that have multiple users of a cell. For example, if an mfd * driver wants the cell "foo" to be used by a GPIO driver, an MTD driver, * and a platform driver, the following bit of code would be use after first * calling mfd_add_devices(): * * const char *fclones[] = { "foo-gpio", "foo-mtd" }; * err = mfd_clone_cells("foo", fclones, ARRAY_SIZE(fclones)); * * Each driver (MTD, GPIO, and platform driver) would then register * platform_drivers for "foo-mtd", "foo-gpio", and "foo", respectively. * The cell's .enable/.disable hooks should be used to deal with hardware * resource contention. */ extern int mfd_clone_cell(const char *cell, const char **clones, size_t n_clones); /* * Given a platform device that's been created by mfd_add_devices(), fetch * the mfd_cell that created it. */ static inline const struct mfd_cell *mfd_get_cell(struct platform_device *pdev) { return pdev->mfd_cell; } extern int mfd_add_devices(struct device *parent, int id, const struct mfd_cell *cells, int n_devs, struct resource *mem_base, int irq_base, struct irq_domain *irq_domain); static inline int mfd_add_hotplug_devices(struct device *parent, const struct mfd_cell *cells, int n_devs) { return mfd_add_devices(parent, PLATFORM_DEVID_AUTO, cells, n_devs, NULL, 0, NULL); } extern void mfd_remove_devices(struct device *parent); extern int devm_mfd_add_devices(struct device *dev, int id, const struct mfd_cell *cells, int n_devs, struct resource *mem_base, int irq_base, struct irq_domain *irq_domain); #endif
[+]
..
[-] ac100.h
[edit]
[-] hi655x-pmic.h
[edit]
[-] smsc.h
[edit]
[-] max8998-private.h
[edit]
[-] rt5033.h
[edit]
[-] tps65912.h
[edit]
[+]
wm831x
[-] 88pm860x.h
[edit]
[-] tps6507x.h
[edit]
[-] 88pm80x.h
[edit]
[-] rt5033-private.h
[edit]
[-] tps65086.h
[edit]
[-] tc6393xb.h
[edit]
[-] menelaus.h
[edit]
[-] sta2x11-mfd.h
[edit]
[-] max8907.h
[edit]
[-] retu.h
[edit]
[-] twl6040.h
[edit]
[-] janz.h
[edit]
[-] tps6586x.h
[edit]
[-] max8997-private.h
[edit]
[-] si476x-platform.h
[edit]
[-] lm3533.h
[edit]
[-] rk808.h
[edit]
[-] max14577-private.h
[edit]
[-] intel_soc_pmic.h
[edit]
[-] lochnagar2_regs.h
[edit]
[-] kempld.h
[edit]
[-] mxs-lradc.h
[edit]
[-] stw481x.h
[edit]
[-] tps6105x.h
[edit]
[-] tc6387xb.h
[edit]
[-] wm97xx.h
[edit]
[+]
da9062
[-] imx25-tsadc.h
[edit]
[+]
da9150
[-] max77686.h
[edit]
[-] rdc321x.h
[edit]
[-] htc-pasic3.h
[edit]
[-] hi6421-pmic.h
[edit]
[-] lp3943.h
[edit]
[-] wl1273-core.h
[edit]
[+]
da9055
[-] dln2.h
[edit]
[-] max77693-private.h
[edit]
[-] max77693-common.h
[edit]
[-] sun4i-gpadc.h
[edit]
[-] lpc_ich.h
[edit]
[-] ingenic-tcu.h
[edit]
[-] mc13xxx.h
[edit]
[-] ti-lmu.h
[edit]
[+]
arizona
[-] max77620.h
[edit]
[-] db8500-prcmu.h
[edit]
[-] twl.h
[edit]
[-] abx500.h
[edit]
[-] ds1wm.h
[edit]
[-] max77693.h
[edit]
[-] stmpe.h
[edit]
[-] altera-sysmgr.h
[edit]
[-] dbx500-prcmu.h
[edit]
[-] altera-a10sr.h
[edit]
[+]
pcf50633
[-] ezx-pcap.h
[edit]
[-] wm8400.h
[edit]
[-] sky81452.h
[edit]
[-] rc5t583.h
[edit]
[-] davinci_voicecodec.h
[edit]
[-] tps65910.h
[edit]
[-] bcm2835-pm.h
[edit]
[-] intel_msic.h
[edit]
[-] stm32-lptimer.h
[edit]
[-] tps65218.h
[edit]
[-] max8998.h
[edit]
[-] rohm-bd70528.h
[edit]
[-] intel_soc_pmic_bxtwc.h
[edit]
[-] max8925.h
[edit]
[-] ucb1x00.h
[edit]
[-] mc13783.h
[edit]
[-] axp20x.h
[edit]
[-] t7l66xb.h
[edit]
[-] as3711.h
[edit]
[-] ipaq-micro.h
[edit]
[-] stm32-timers.h
[edit]
[-] lp8788-isink.h
[edit]
[-] max77686-private.h
[edit]
[-] lp87565.h
[edit]
[-] syscon.h
[edit]
[-] si476x-reports.h
[edit]
[-] cros_ec.h
[edit]
[-] tps80031.h
[edit]
[-] lochnagar.h
[edit]
[-] qcom_rpm.h
[edit]
[+]
syscon
[-] dm355evm_msp.h
[edit]
[-] stmfx.h
[edit]
[+]
da9063
[-] ab3100.h
[edit]
[-] lp8788.h
[edit]
[-] viperboard.h
[edit]
[-] si476x-core.h
[edit]
[+]
wm8350
[-] tps65090.h
[edit]
[-] max8997.h
[edit]
[-] palmas.h
[edit]
[-] asic3.h
[edit]
[-] rn5t618.h
[edit]
[-] rohm-bd718x7.h
[edit]
[-] tps65010.h
[edit]
[-] as3722.h
[edit]
[-] atmel-hlcdc.h
[edit]
[-] core.h
[edit]
[-] wm8400-audio.h
[edit]
[-] ahc1ec0.h
[edit]
[-] max77650.h
[edit]
[-] adp5520.h
[edit]
[-] ti-lmu-register.h
[edit]
[-] twl4030-audio.h
[edit]
[-] mc13892.h
[edit]
[-] max14577.h
[edit]
[+]
madera
[-] wm8400-private.h
[edit]
[-] tc3589x.h
[edit]
[-] da8xx-cfgchip.h
[edit]
[-] rave-sp.h
[edit]
[-] ti_am335x_tscadc.h
[edit]
[-] stpmic1.h
[edit]
[-] bcm590xx.h
[edit]
[+]
samsung
[-] intel_soc_pmic_mrfld.h
[edit]
[-] max77843-private.h
[edit]
[-] rohm-generic.h
[edit]
[+]
da9052
[-] lochnagar1_regs.h
[edit]
[+]
mt6323
[-] motorola-cpcap.h
[edit]
[-] lp873x.h
[edit]
[-] mcp.h
[edit]
[-] da903x.h
[edit]
[-] tps65217.h
[edit]
[-] bd9571mwv.h
[edit]
[+]
mt6397
[-] aat2870.h
[edit]
[+]
wm8994
[-] tmio.h
[edit]
[-] tps68470.h
[edit]
[+]
abx500