internal.h (0135bbcc7a0cc056f0203ff839466236b8e3dc19) | internal.h (bacdbe077342ecc9e7b3e374cc5a41995116706a) |
---|---|
1/* 2 * Register map access API internal header 3 * 4 * Copyright 2011 Wolfson Microelectronics plc 5 * 6 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 17 unchanged lines hidden (view full) --- 26 size_t val_bytes; 27 void (*format_write)(struct regmap *map, 28 unsigned int reg, unsigned int val); 29 void (*format_reg)(void *buf, unsigned int reg); 30 void (*format_val)(void *buf, unsigned int val); 31 unsigned int (*parse_val)(void *buf); 32}; 33 | 1/* 2 * Register map access API internal header 3 * 4 * Copyright 2011 Wolfson Microelectronics plc 5 * 6 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 17 unchanged lines hidden (view full) --- 26 size_t val_bytes; 27 void (*format_write)(struct regmap *map, 28 unsigned int reg, unsigned int val); 29 void (*format_reg)(void *buf, unsigned int reg); 30 void (*format_val)(void *buf, unsigned int val); 31 unsigned int (*parse_val)(void *buf); 32}; 33 |
34typedef void (*regmap_lock)(struct regmap *map); 35typedef void (*regmap_unlock)(struct regmap *map); 36 |
|
34struct regmap { | 37struct regmap { |
35 struct mutex lock; | 38 struct mutex mutex; 39 spinlock_t spinlock; 40 regmap_lock lock; 41 regmap_unlock unlock; |
36 37 struct device *dev; /* Device we do I/O on */ 38 void *work_buf; /* Scratch buffer used to format I/O */ 39 struct regmap_format format; /* Buffer format */ 40 const struct regmap_bus *bus; 41 void *bus_context; 42 43#ifdef CONFIG_DEBUG_FS --- 88 unchanged lines hidden --- | 42 43 struct device *dev; /* Device we do I/O on */ 44 void *work_buf; /* Scratch buffer used to format I/O */ 45 struct regmap_format format; /* Buffer format */ 46 const struct regmap_bus *bus; 47 void *bus_context; 48 49#ifdef CONFIG_DEBUG_FS --- 88 unchanged lines hidden --- |