~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/mfd/abx500.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/linux/mfd/abx500.h (Version linux-6.11-rc3) and /include/linux/mfd/abx500.h (Version linux-5.13.19)


  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*                                                  2 /*
  3  * Copyright (C) 2007-2009 ST-Ericsson AB           3  * Copyright (C) 2007-2009 ST-Ericsson AB
  4  *                                                  4  *
  5  * ABX500 core access functions.                    5  * ABX500 core access functions.
  6  * The abx500 interface is used for the Analog      6  * The abx500 interface is used for the Analog Baseband chips.
  7  *                                                  7  *
  8  * Author: Mattias Wallin <mattias.wallin@ster      8  * Author: Mattias Wallin <mattias.wallin@stericsson.com>
  9  * Author: Mattias Nilsson <mattias.i.nilsson@      9  * Author: Mattias Nilsson <mattias.i.nilsson@stericsson.com>
 10  * Author: Bengt Jonsson <bengt.g.jonsson@ster     10  * Author: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
 11  * Author: Rickard Andersson <rickard.andersso     11  * Author: Rickard Andersson <rickard.andersson@stericsson.com>
 12  */                                                12  */
 13                                                    13 
 14 #include <linux/regulator/machine.h>               14 #include <linux/regulator/machine.h>
 15                                                    15 
 16 struct device;                                     16 struct device;
 17                                                    17 
 18 #ifndef MFD_ABX500_H                               18 #ifndef MFD_ABX500_H
 19 #define MFD_ABX500_H                               19 #define MFD_ABX500_H
 20                                                    20 
 21 /**                                                21 /**
 22  * struct abx500_init_setting                      22  * struct abx500_init_setting
 23  * Initial value of the registers for driver t     23  * Initial value of the registers for driver to use during setup.
 24  */                                                24  */
 25 struct abx500_init_settings {                      25 struct abx500_init_settings {
 26         u8 bank;                                   26         u8 bank;
 27         u8 reg;                                    27         u8 reg;
 28         u8 setting;                                28         u8 setting;
 29 };                                                 29 };
 30                                                    30 
 31 int abx500_set_register_interruptible(struct d     31 int abx500_set_register_interruptible(struct device *dev, u8 bank, u8 reg,
 32         u8 value);                                 32         u8 value);
 33 int abx500_get_register_interruptible(struct d     33 int abx500_get_register_interruptible(struct device *dev, u8 bank, u8 reg,
 34         u8 *value);                                34         u8 *value);
 35 int abx500_get_register_page_interruptible(str     35 int abx500_get_register_page_interruptible(struct device *dev, u8 bank,
 36         u8 first_reg, u8 *regvals, u8 numregs)     36         u8 first_reg, u8 *regvals, u8 numregs);
 37 int abx500_set_register_page_interruptible(str     37 int abx500_set_register_page_interruptible(struct device *dev, u8 bank,
 38         u8 first_reg, u8 *regvals, u8 numregs)     38         u8 first_reg, u8 *regvals, u8 numregs);
 39 /**                                                39 /**
 40  * abx500_mask_and_set_register_inerruptible()     40  * abx500_mask_and_set_register_inerruptible() - Modifies selected bits of a
 41  *      target register                            41  *      target register
 42  *                                                 42  *
 43  * @dev: The AB sub device.                        43  * @dev: The AB sub device.
 44  * @bank: The i2c bank number.                     44  * @bank: The i2c bank number.
 45  * @bitmask: The bit mask to use.                  45  * @bitmask: The bit mask to use.
 46  * @bitvalues: The new bit values.                 46  * @bitvalues: The new bit values.
 47  *                                                 47  *
 48  * Updates the value of an AB register:            48  * Updates the value of an AB register:
 49  * value -> ((value & ~bitmask) | (bitvalues &     49  * value -> ((value & ~bitmask) | (bitvalues & bitmask))
 50  */                                                50  */
 51 int abx500_mask_and_set_register_interruptible     51 int abx500_mask_and_set_register_interruptible(struct device *dev, u8 bank,
 52         u8 reg, u8 bitmask, u8 bitvalues);         52         u8 reg, u8 bitmask, u8 bitvalues);
 53 int abx500_get_chip_id(struct device *dev);        53 int abx500_get_chip_id(struct device *dev);
 54 int abx500_event_registers_startup_state_get(s     54 int abx500_event_registers_startup_state_get(struct device *dev, u8 *event);
 55 int abx500_startup_irq_enabled(struct device *     55 int abx500_startup_irq_enabled(struct device *dev, unsigned int irq);
 56                                                    56 
 57 struct abx500_ops {                                57 struct abx500_ops {
 58         int (*get_chip_id) (struct device *);      58         int (*get_chip_id) (struct device *);
 59         int (*get_register) (struct device *,      59         int (*get_register) (struct device *, u8, u8, u8 *);
 60         int (*set_register) (struct device *,      60         int (*set_register) (struct device *, u8, u8, u8);
 61         int (*get_register_page) (struct devic     61         int (*get_register_page) (struct device *, u8, u8, u8 *, u8);
 62         int (*set_register_page) (struct devic     62         int (*set_register_page) (struct device *, u8, u8, u8 *, u8);
 63         int (*mask_and_set_register) (struct d     63         int (*mask_and_set_register) (struct device *, u8, u8, u8, u8);
 64         int (*event_registers_startup_state_ge     64         int (*event_registers_startup_state_get) (struct device *, u8 *);
 65         int (*startup_irq_enabled) (struct dev     65         int (*startup_irq_enabled) (struct device *, unsigned int);
 66         void (*dump_all_banks) (struct device      66         void (*dump_all_banks) (struct device *);
 67 };                                                 67 };
 68                                                    68 
 69 int abx500_register_ops(struct device *core_de     69 int abx500_register_ops(struct device *core_dev, struct abx500_ops *ops);
 70 void abx500_remove_ops(struct device *dev);        70 void abx500_remove_ops(struct device *dev);
 71 #endif                                             71 #endif
 72                                                    72 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php