[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 11/18] hw/misc: Rename avr_mask -> atmel_power
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v4 11/18] hw/misc: Rename avr_mask -> atmel_power |
Date: |
Mon, 20 Jan 2020 23:01:00 +0100 |
AVR is the architecture, Atmel the manufacturer.
Suggested-by: Aleksandar Markovic <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
!squash
---
include/hw/misc/{avr_mask.h => atmel_power.h} | 10 +++++-----
hw/avr/sample.c | 2 +-
hw/misc/{avr_mask.c => atmel_power.c} | 4 ++--
MAINTAINERS | 4 ++--
hw/avr/Kconfig | 2 +-
hw/misc/Kconfig | 2 +-
hw/misc/Makefile.objs | 2 +-
7 files changed, 13 insertions(+), 13 deletions(-)
rename include/hw/misc/{avr_mask.h => atmel_power.h} (89%)
rename hw/misc/{avr_mask.c => atmel_power.c} (97%)
diff --git a/include/hw/misc/avr_mask.h b/include/hw/misc/atmel_power.h
similarity index 89%
rename from include/hw/misc/avr_mask.h
rename to include/hw/misc/atmel_power.h
index 5f95e1081d..5366e9693f 100644
--- a/include/hw/misc/avr_mask.h
+++ b/include/hw/misc/atmel_power.h
@@ -1,5 +1,5 @@
/*
- * AVR Power Reduction
+ * Atmel AVR Power Reduction Management
*
* Copyright (c) 2019 Michael Rolnik
*
@@ -22,14 +22,14 @@
* THE SOFTWARE.
*/
-#ifndef HW_avr_mask_H
-#define HW_avr_mask_H
+#ifndef HW_MISC_ATMEL_POWER_H
+#define HW_MISC_ATMEL_POWER_H
#include "hw/sysbus.h"
#include "hw/hw.h"
-#define TYPE_AVR_MASK "avr-mask"
+#define TYPE_AVR_MASK "atmel-power"
#define AVR_MASK(obj) OBJECT_CHECK(AVRMaskState, (obj), TYPE_AVR_MASK)
typedef struct {
@@ -43,4 +43,4 @@ typedef struct {
qemu_irq irq[8];
} AVRMaskState;
-#endif /* HW_avr_mask_H */
+#endif /* HW_MISC_ATMEL_POWER_H */
diff --git a/hw/avr/sample.c b/hw/avr/sample.c
index 19e9f56f3b..19b8c067e5 100644
--- a/hw/avr/sample.c
+++ b/hw/avr/sample.c
@@ -46,7 +46,7 @@
#include "include/hw/sysbus.h"
#include "include/hw/char/atmel_usart.h"
#include "include/hw/timer/atmel_timer16.h"
-#include "include/hw/misc/avr_mask.h"
+#include "include/hw/misc/atmel_power.h"
#include "elf.h"
#include "hw/misc/unimp.h"
diff --git a/hw/misc/avr_mask.c b/hw/misc/atmel_power.c
similarity index 97%
rename from hw/misc/avr_mask.c
rename to hw/misc/atmel_power.c
index 3af82ed9c1..adab729f66 100644
--- a/hw/misc/avr_mask.c
+++ b/hw/misc/atmel_power.c
@@ -1,5 +1,5 @@
/*
- * AVR Power Reduction
+ * Atmel AVR Power Reduction Management
*
* Copyright (c) 2019 Michael Rolnik
*
@@ -23,7 +23,7 @@
*/
#include "qemu/osdep.h"
-#include "hw/misc/avr_mask.h"
+#include "hw/misc/atmel_power.h"
#include "qemu/log.h"
#include "hw/qdev-properties.h"
#include "hw/irq.h"
diff --git a/MAINTAINERS b/MAINTAINERS
index a98d164bc1..60634cebf4 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -900,8 +900,8 @@ F: hw/char/atmel_usart.c
F: include/hw/char/atmel_usart.h
F: hw/timer/atmel_timer16.c
F: include/hw/timer/atmel_timer16.h
-F: hw/misc/avr_mask.c
-F: include/hw/misc/avr_mask.h
+F: hw/misc/atmel_power.c
+F: include/hw/misc/atmel_power.h
F: tests/acceptance/machine_avr6.py
CRIS Machines
diff --git a/hw/avr/Kconfig b/hw/avr/Kconfig
index 45c7025f09..516b89c849 100644
--- a/hw/avr/Kconfig
+++ b/hw/avr/Kconfig
@@ -2,5 +2,5 @@ config AVR_SAMPLE
bool
select ATMEL_TIMER16
select ATMEL_USART
- select AVR_MASK
+ select ATMEL_POWER
select UNIMP
diff --git a/hw/misc/Kconfig b/hw/misc/Kconfig
index 74a1e9a241..3a3c32e1b0 100644
--- a/hw/misc/Kconfig
+++ b/hw/misc/Kconfig
@@ -131,7 +131,7 @@ config MAC_VIA
select MOS6522
select ADB
-config AVR_MASK
+config ATMEL_POWER
bool
source macio/Kconfig
diff --git a/hw/misc/Makefile.objs b/hw/misc/Makefile.objs
index bbf17f651b..e605964f4b 100644
--- a/hw/misc/Makefile.objs
+++ b/hw/misc/Makefile.objs
@@ -86,4 +86,4 @@ obj-$(CONFIG_MAC_VIA) += mac_via.o
common-obj-$(CONFIG_GRLIB) += grlib_ahb_apb_pnp.o
-obj-$(CONFIG_AVR_MASK) += avr_mask.o
+obj-$(CONFIG_ATMEL_POWER) += atmel_power.o
--
2.21.1
- [PATCH v4 01/18] MAINTAINERS: Move machine test to the machine section (not ARCH one), (continued)
- [PATCH v4 01/18] MAINTAINERS: Move machine test to the machine section (not ARCH one), Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 02/18] MAINTAINERS: Move the AVR machines in new section (not within ARM), Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 03/18] tests/acceptance: Do not set the machine type manually, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 04/18] tests/acceptance: Keep multilines comment consistent with other tests, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 05/18] hw/char/avr: Reduce USART I/O size, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 07/18] hw/misc/avr_mask: Remove unused include, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 06/18] hw/timer/avr_timer16: Rename memory region debugging name, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 08/18] hw/avr/Makefile: Use CONFIG_AVR_SAMPLE variable, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 09/18] hw/char: Rename avr_usart -> atmel_usart, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 10/18] hw/timer: Rename avr_timer16 -> atmel_timer16, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 11/18] hw/misc: Rename avr_mask -> atmel_power,
Philippe Mathieu-Daudé <=
- [PATCH v4 12/18] hw/avr: Introduce ATMEL_ATMEGA_MCU config, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 15/18] tests/boot-serial-test: Test some Arduino boards (AVR based), Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 14/18] hw/avr: Add some Arduino boards, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 13/18] hw/avr: Add some ATmega microcontrollers, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 16/18] tests/acceptance: Test the Arduino MEGA2560 board, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 18/18] .travis.yml: Run the AVR acceptance tests, Philippe Mathieu-Daudé, 2020/01/20
- [PATCH v4 17/18] hw/avr: Remove the unrealistic AVR 'sample' board, Philippe Mathieu-Daudé, 2020/01/20
- Re: [PATCH v4 00/18] hw/avr: Introduce few Arduino boards, Philippe Mathieu-Daudé, 2020/01/20
- Re: [PATCH v4 00/18] hw/avr: Introduce few Arduino boards, Michael Rolnik, 2020/01/21