[PATCH for 5.0 1/6] linux-user: Add support for enabling/disabling rtc features using ioctls

2019-11-13 Thread Filip Bozuta
Signed-off-by: Filip Bozuta --- linux-user/ioctls.h | 9 + linux-user/syscall.c | 1 + linux-user/syscall_defs.h | 10 ++ 3 files changed, 20 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index c6b9d6a..97741c7 100644 --- a/linux-user/ioctls.h

[PATCH for 5.0 0/6] linux-user: Add support for real time clock ioctls

2019-11-13 Thread Filip Bozuta
Add ioctls for all rtc features that are currently supported in linux kernell. Filip Bozuta (6): linux-user: Add support for enabling/disabling rtc features using ioctls linux-user: Add set and read for rtc time and alarm using ioctls linux-user: Add read and set for rtc periodic

[PATCH for 5.0 5/6] linux-user: Add get and set for rtc pll correction using ioctls

2019-11-13 Thread Filip Bozuta
Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 2 ++ linux-user/syscall_defs.h | 14 ++ linux-user/syscall_types.h | 9 + 3 files changed, 25 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 5830315..eea65e1 100644 --- a/linux-user

[PATCH for 5.0 2/6] linux-user: Add set and read for rtc time and alarm using ioctls

2019-11-13 Thread Filip Bozuta
Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 4 linux-user/syscall_defs.h | 4 linux-user/syscall_types.h | 11 +++ 3 files changed, 19 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 97741c7..ff1cdd2 100644 --- a/linux-user

[PATCH for 5.0 3/6] linux-user: Add read and set for rtc periodic interrupt and epoch using ioctls

2019-11-13 Thread Filip Bozuta
Signed-off-by: Filip Bozuta --- linux-user/ioctls.h | 4 linux-user/syscall_defs.h | 4 2 files changed, 8 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index ff1cdd2..7d76a9f 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -81,6 +81,10

[PATCH for 5.0 4/6] linux-user: Add get and set for rtc wakeup alarm using ioctls

2019-11-13 Thread Filip Bozuta
Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 2 ++ linux-user/syscall_defs.h | 2 ++ linux-user/syscall_types.h | 5 + 3 files changed, 9 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 7d76a9f..5830315 100644 --- a/linux-user/ioctls.h +++ b/linux

[PATCH for 5.0 6/6] linux-user: Add rtc voltage low detector read and clear using ioctls

2019-11-13 Thread Filip Bozuta
Signed-off-by: Filip Bozuta --- linux-user/ioctls.h | 2 ++ linux-user/syscall_defs.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index eea65e1..330e502 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -89,6 +89,8

[PATCH v2 for 5.0 0/6] linux-user: Add support for real time clock ioctls

2019-11-14 Thread Filip Bozuta
ctl"); return -1; } printf("Second: %d, Minute: %d, Hour: %d, Day: %d, Month: %d, Year: %d,", cur_time.tm_sec, cur_time.tm_min, cur_time.tm_hour, cur_time.tm_mday, cur_time.tm_mon, cur_time.tm_year); return 0; } Filip Bozuta (6): lin

[PATCH v2 for 5.0 2/6] linux-user: Add support for read/set RTC time and alarm using ioctls

2019-11-14 Thread Filip Bozuta
/syscall_types.h. Since all elements of this structure are of type 'int', the rest of the implementation is straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 4 linux-user/syscall_defs.h | 4 linux-user/syscall_types.h | 11 +++ 3 files changed, 19

[PATCH v2 for 5.0 4/6] linux-user: Add support for get/set RTC wakeup alarm using ioctls

2019-11-14 Thread Filip Bozuta
/syscall_types.h. Since all elements of this structure are either of type 'unsigned char' or 'struct rtc_time' (that was covered in one of previous patches), the rest of the implementation is straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 2 ++ linux-user

[PATCH v2 for 5.0 3/6] linux-user: Add support for read/set RTC periodic interrupt and epoch using ioctls

2019-11-14 Thread Filip Bozuta
special handling related to 'ulong' type: they use 'abi_ulong' type to make sure that ioctl's code is calculated correctly for both 32-bit and 64-bit targets. Also, 'MK_PTR(TYPE_ULONG)' is used for the similar reason in linux-user/ioctls.h. Signed-off-by: Filip Bozuta --- linux-user

[PATCH v2 for 5.0 5/6] linux-user: Add support for get/set RTC PLL correction using ioctls

2019-11-14 Thread Filip Bozuta
', except the last one that is of type 'long'. That is the reason why a separate target structure (target_rtc_pll_info) is defined in linux-user/syscall_defs. The rest of the implementation is straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 2 ++ linux

[PATCH v2 for 5.0 1/6] linux-user: Add support for enable/disable RTC features using ioctls

2019-11-14 Thread Filip Bozuta
, therefore there is no need to worry about supporting older Linux kernel version. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h | 9 + linux-user/syscall.c | 1 + linux-user/syscall_defs.h | 10 ++ 3 files changed, 20 insertions(+) diff --git a/linux-user

[PATCH v2 for 5.0 6/6] linux-user: Add support for read/clear RTC voltage low detector using ioctls

2019-11-14 Thread Filip Bozuta
for RTCs that support voltage low. The third ioctl(2) argument is ignored. Implementation notes: Since one ioctl has a pointer to 'int' as its third agrument, and another ioctl has NULL as its third argument, their implementation was straightforward. Signed-off-by: Filip Bozuta

[PATCH v3 for 5.0 0/6] linux-user: Add support for real time clock ioctls

2019-11-15 Thread Filip Bozuta
update implementations accordingly. v3: * changed two instances of MK_PTR(TYPE_ULONG) to TYPE_ULONG v2: * added description of each ioctl in patches * wrote a more detailed cover letter with description of testing * changed one instance of TYPE_INT to MK_PTR(TYPE_INT) Filip Bozut

[PATCH v3 for 5.0 6/6] linux-user: Add support for read/clear RTC voltage low detector using ioctls

2019-11-15 Thread Filip Bozuta
for RTCs that support voltage low. The third ioctl(2) argument is ignored. Implementation notes: Since one ioctl has a pointer to 'int' as its third agrument, and another ioctl has NULL as its third argument, their implementation was straightforward. Signed-off-by: Filip Bozuta

[PATCH v3 for 5.0 3/6] linux-user: Add support for read/set RTC periodic interrupt and epoch using ioctls

2019-11-15 Thread Filip Bozuta
special handling related to 'ulong' type: they use 'abi_ulong' type to make sure that ioctl's code is calculated correctly for both 32-bit and 64-bit targets. Also, 'MK_PTR(TYPE_ULONG)' is used for the similar reason in linux-user/ioctls.h. Signed-off-by: Filip Bozuta --- linux-user

[PATCH v3 for 5.0 2/6] linux-user: Add support for read/set RTC time and alarm using ioctls

2019-11-15 Thread Filip Bozuta
/syscall_types.h. Since all elements of this structure are of type 'int', the rest of the implementation is straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 4 linux-user/syscall_defs.h | 4 linux-user/syscall_types.h | 11 +++ 3 files changed, 19

[PATCH v3 for 5.0 5/6] linux-user: Add support for get/set RTC PLL correction using ioctls

2019-11-15 Thread Filip Bozuta
', except the last one that is of type 'long'. That is the reason why a separate target structure (target_rtc_pll_info) is defined in linux-user/syscall_defs. The rest of the implementation is straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 2 ++ linux

[PATCH v3 for 5.0 4/6] linux-user: Add support for get/set RTC wakeup alarm using ioctls

2019-11-15 Thread Filip Bozuta
/syscall_types.h. Since all elements of this structure are either of type 'unsigned char' or 'struct rtc_time' (that was covered in one of previous patches), the rest of the implementation is straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 2 ++ linux-user

[PATCH v3 for 5.0 1/6] linux-user: Add support for enable/disable RTC features using ioctls

2019-11-15 Thread Filip Bozuta
, therefore there is no need to worry about supporting older Linux kernel version. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h | 9 + linux-user/syscall.c | 1 + linux-user/syscall_defs.h | 10 ++ 3 files changed, 20 insertions(+) diff --git a/linux-user

[PATCH 3/5] mips: mipssim: Renovate coding style

2019-12-06 Thread Filip Bozuta
and then the script was ran again to make sure there are no more errors and warnings. Signed-off-by: Filip Bozuta Reviewed-by: Aleksandar Markovic --- hw/net/mipsnet.c | 44 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/hw/net/mipsnet.c b/hw

[PATCH 4/5] mips: r4000: Renovate coding style

2019-12-06 Thread Filip Bozuta
sure there are no more errors and warnings. Signed-off-by: Filip Bozuta Reviewed-by: Aleksandar Markovic --- hw/mips/mips_r4k.c | 55 +- 1 file changed, 34 insertions(+), 21 deletions(-) diff --git a/hw/mips/mips_r4k.c b/hw/mips/mips_r4k.c index

[PATCH 0/5] mips: machines: Renovate coding style

2019-12-06 Thread Filip Bozuta
lines 103 and 107 in tests/acceptance/mips_malta.c so that splitting lines are aligned vertically belove the opening brackets * changed line 121 in mips_r4k.c so that INITRD_PAGE_MASK so that it is aligned vertically belove the opening bracket Filip Bozuta (5): mips: jazz

[PATCH 1/5] mips: jazz: Renovate coding style

2019-12-06 Thread Filip Bozuta
corrected and then the script was ran again to make sure there are no more errors and warnings. Signed-off-by: Filip Bozuta Reviewed-by: Aleksandar Markovic --- hw/display/jazz_led.c | 123 +- hw/dma/rc4030.c | 12 +++-- hw/mips/mips_jazz.c

[PATCH 2/5] mips: malta: Renovate coding style

2019-12-06 Thread Filip Bozuta
by the checkpatch.pl script were corrected and then the script was ran again to make sure there are no more errors and warnings. Signed-off-by: Filip Bozuta Reviewed-by: Aleksandar Markovic --- hw/mips/mips_malta.c | 169 --- tests/acceptance

[PATCH 5/5] mips: fulong 2e: Renovate coding style

2019-12-06 Thread Filip Bozuta
generated by the checkpatch.pl script were corrected and then the script was ran again to make sure there are no more errors and warnings. Signed-off-by: Filip Bozuta Reviewed-by: Aleksandar Markovic --- hw/isa/vt82c686.c| 23 ++-- hw/pci-host/bonito.c | 60

[PATCH 0/2] target/mips: Rearrange handling of vector compare instructions

2019-10-23 Thread Filip Bozuta
Simplify instructions by removing unnecessary argument and creating separate comparing functions for each instruction. Filip Bozuta (2): target/mips: Rearrange vector compare equal instructions target/mips: Rearrange vector compare less than (signed) instructions target/mips/msa_helper.c

[PATCH 2/2] target/mips: Rearrange vector compare less than (signed) instructions

2019-10-23 Thread Filip Bozuta
Remove unnecessary argument and provide separate function for each instruction. Signed-off-by: Filip Bozuta --- target/mips/msa_helper.c | 80 ++-- 1 file changed, 50 insertions(+), 30 deletions(-) diff --git a/target/mips/msa_helper.c b/target/mips

[PATCH 1/2] target/mips: Rearrange vector compare equal instructions

2019-10-23 Thread Filip Bozuta
Remove unnecessary argument and provide separate function for each instruction. Signed-off-by: Filip Bozuta --- target/mips/msa_helper.c | 80 ++-- 1 file changed, 50 insertions(+), 30 deletions(-) diff --git a/target/mips/msa_helper.c b/target/mips

[PATCH 5/5] mips: fulong 2e: Renovate coding style

2019-11-25 Thread Filip Bozuta
generated by the checkpatch.pl script were corrected and then the script was ran again to make sure there are no more errors and warnings. Signed-off-by: Filip Bozuta --- hw/isa/vt82c686.c| 23 ++-- hw/pci-host/bonito.c | 60 +--- 2

[PATCH 1/5] mips: jazz: Renovate coding style

2019-11-25 Thread Filip Bozuta
corrected and then the script was ran again to make sure there are no more errors and warnings. Signed-off-by: Filip Bozuta --- hw/display/jazz_led.c | 123 +- hw/dma/rc4030.c | 12 +++-- hw/mips/mips_jazz.c | 32 +++-- 3 files

[PATCH 4/5] mips: r4000: Renovate coding style

2019-11-25 Thread Filip Bozuta
sure there are no more errors and warnings. Signed-off-by: Filip Bozuta --- hw/mips/mips_r4k.c | 55 +- 1 file changed, 34 insertions(+), 21 deletions(-) diff --git a/hw/mips/mips_r4k.c b/hw/mips/mips_r4k.c index 7002423..d638358 100644 --- a/hw

[PATCH 2/5] mips: malta: Renovate coding style

2019-11-25 Thread Filip Bozuta
by the checkpatch.pl script were corrected and then the script was ran again to make sure there are no more errors and warnings. Signed-off-by: Filip Bozuta --- hw/mips/mips_malta.c | 139 --- tests/acceptance/linux_ssh_mips_malta.py | 6 +- 2 files

[PATCH 3/5] mips: mipssim: Renovate coding style

2019-11-25 Thread Filip Bozuta
and then the script was ran again to make sure there are no more errors and warnings. Signed-off-by: Filip Bozuta --- hw/net/mipsnet.c | 44 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/hw/net/mipsnet.c b/hw/net/mipsnet.c index f7ae1ce

[PATCH 0/5] mips: machines: Renovate coding style

2019-11-25 Thread Filip Bozuta
in future versions. Filip Bozuta (5): mips: jazz: Renovate coding style mips: malta: Renovate coding style mips: mipssim: Renovate coding style mips: r4000: Renovate coding style mips: fulong 2e: Renovate coding style hw/display/jazz_led.c| 123

[PATCH v4 0/6] linux-user: Add support for real time clock ioctls

2019-12-18 Thread Filip Bozuta
to TYPE_ULONG v2: * added description of each ioctl in patches * wrote a more detailed cover letter with description of testing * changed one instance of TYPE_INT to MK_PTR(TYPE_INT) Filip Bozuta (6): linux-user: Add support for enabling/disabling RTC features using ioctls linu

[PATCH v4 1/6] linux-user: Add support for enabling/disabling RTC features using ioctls

2019-12-18 Thread Filip Bozuta
, therefore there is no need to worry about supporting older Linux kernel version. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h | 9 + linux-user/syscall.c | 1 + linux-user/syscall_defs.h | 10 ++ 3 files changed, 20 insertions(+) diff --git a/linux-user

[PATCH v4 5/6] linux-user: Add support for getting/setting RTC PLL correction using ioctls

2019-12-18 Thread Filip Bozuta
are of type 'int', except the last one that is of type 'long'. That is the reason why a separate target structure (target_rtc_pll_info) is defined in linux-user/syscall_defs. The rest of the implementation is straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 2

[PATCH v4 2/6] linux-user: Add support for getting/setting RTC time and alarm using ioctls

2019-12-18 Thread Filip Bozuta
/syscall_types.h. Since all elements of this structure are of type 'int', the rest of the implementation is straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 4 linux-user/syscall_defs.h | 4 linux-user/syscall_types.h | 11 +++ 3 files changed, 19

[PATCH v4 3/6] linux-user: Add support for getting/setting RTC periodic interrupt and epoch using ioctls

2019-12-18 Thread Filip Bozuta
special handling related to 'ulong' type: they use 'abi_ulong' type to make sure that ioctl's code is calculated correctly for both 32-bit and 64-bit targets. Also, 'MK_PTR(TYPE_ULONG)' is used for the similar reason in linux-user/ioctls.h. Signed-off-by: Filip Bozuta --- linux

[PATCH v4 6/6] linux-user: Add support for read/clear RTC voltage low detector using ioctls

2019-12-18 Thread Filip Bozuta
for RTCs that support voltage low. The third ioctl(2) argument is ignored. Implementation notes: Since one ioctl has a pointer to 'int' as its third agrument, and another ioctl has NULL as its third argument, their implementation was straightforward. Signed-off-by: Filip Bozuta

[PATCH v4 4/6] linux-user: Add support for getting/setting RTC wakeup alarm using ioctls

2019-12-18 Thread Filip Bozuta
/syscall_types.h. Since all elements of this structure are either of type 'unsigned char' or 'struct rtc_time' (that was covered in one of previous patches), the rest of the implementation is straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 2 ++ linux-user

[PATCH v2 2/2] tests/tcg/multiarch: Add tests for implemented alsa sound timer ioctls

2020-02-13 Thread Filip Bozuta
tput line that shows which test passed and at which test the program aborts. It was also modified so that it doesn't have styling problems detected by 'scripts/checkpatch.pl'. Signed-off-by: Filip Bozuta --- .../manual-test/alsa-timer-ioctl-manual-test.c | 294 ++

[PATCH v2 0/2] tests/tcg/multiarch: Add tests for implemented real

2020-02-13 Thread Filip Bozuta
that were obtained remotely run multiple ioctl tests at once, while the manually written tests can be used to run both individual and multiple ioctl tests based on the command specified when running the test. Filip Bozuta (2): tests/tcg/multiarch: Add tests for implemented rtc ioctls tests/tcg

[PATCH v2 1/2] tests/tcg/multiarch: Add tests for implemented rtc ioctls

2020-02-13 Thread Filip Bozuta
It is used to further test functionalities of some rtc ioctls by running rtc clock at different frequencies. Signed-off-by: Filip Bozuta --- .../manual-test/rtc-ioctl-manual-test.c| 352 + .../rtc-ioctl-tests/remote-test/rtc-test.c | 226 ++

[PATCH v3 2/2] tests/tcg/multiarch: Add tests for implemented alsa sound timer ioctls

2020-02-18 Thread Filip Bozuta
tput line that shows which test passed and at which test the program aborts. It was also modified so that it doesn't have styling problems detected by 'scripts/checkpatch.pl'. Signed-off-by: Filip Bozuta --- .../manual-test/alsa-timer-ioctl-manual-test.c | 294 ++

[PATCH v3 1/2] tests/tcg/multiarch: Add tests for implemented rtc ioctls

2020-02-18 Thread Filip Bozuta
It is used to further test functionalities of some rtc ioctls by running rtc clock at different frequencies. Signed-off-by: Filip Bozuta --- .../manual-test/rtc-ioctl-manual-test.c| 352 + .../rtc-ioctl-tests/remote-test/rtc-test.c | 226 ++

[PATCH v3 0/2] tests/tcg/multiarch: Add tests for implemented real

2020-02-18 Thread Filip Bozuta
test files for each ioctl v3: * fixed alsa timer ioctl manual test so that it can run ioctl tests individually by specifying their name when running the test program Filip Bozuta (2): tests/tcg/multiarch: Add tests for implemented rtc ioctls tests/tcg/multiarch: Add tests

[PATCH 04/12] linux-user: Add support for getting/setting RTC wakeup alarm using ioctls

2020-01-09 Thread Filip Bozuta
/syscall_types.h. Since all elements of this structure are either of type 'unsigned char' or 'struct rtc_time' (that was covered in one of previous patches), the rest of the implementation is straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 2 ++ linux-user

[PATCH 00/12] linux-user: Add support for real time clock and

2020-01-09 Thread Filip Bozuta
hey are better formatted and more cemprehensible v3: * changed two instances of MK_PTR(TYPE_ULONG) to TYPE_ULONG v2: * added description of each ioctl in patches * wrote a more detailed cover letter with description of testing * changed one instance of TYPE_INT to MK_PTR(TYPE_I

[PATCH 02/12] linux-user: Add support for getting/setting RTC time and alarm using ioctls

2020-01-09 Thread Filip Bozuta
/syscall_types.h. Since all elements of this structure are of type 'int', the rest of the implementation is straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 4 linux-user/syscall_defs.h | 4 linux-user/syscall_types.h | 11 +++ 3 files changed, 19

[PATCH 05/12] linux-user: Add support for getting/setting RTC PLL correction using ioctls

2020-01-09 Thread Filip Bozuta
are of type 'int', except the last one that is of type 'long'. That is the reason why a separate target structure (target_rtc_pll_info) is defined in linux-user/syscall_defs. The rest of the implementation is straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 2

[PATCH 08/12] linux-user: Add support for setting alsa timer enhanced read using ioctl

2020-01-09 Thread Filip Bozuta
argument is different than 0, otherwise normal time reading is set. Implementation notes: Because the implemented ioctl has 'int' as its third argument, the implementation was straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h | 1 + linux-user/syscall_defs.h

[PATCH 10/12] linux-user: Add support for selecting alsa timer using ioctl

2020-01-09 Thread Filip Bozuta
added in 'linux-user/syscall_types.h'. The rest of the implementation was straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 2 ++ linux-user/syscall_defs.h | 7 +++ linux-user/syscall_types.h | 4 3 files changed, 13 insertions(+) diff --git a/linux-user/i

[PATCH 07/12] linux-user: Add support for getting alsa timer version and id

2020-01-09 Thread Filip Bozuta
ese ioctls. This needs to be done only once in this series of commits. Also, the content of this file (with respect to ioctl definitions) remained unchanged for a long time, therefore there is no need to worry about supporting older Linux kernel version. Signed-off-by: Filip Bozuta

[PATCH 03/12] linux-user: Add support for getting/setting RTC periodic interrupt and epoch using ioctls

2020-01-09 Thread Filip Bozuta
special handling related to 'ulong' type: they use 'abi_ulong' type to make sure that ioctl's code is calculated correctly for both 32-bit and 64-bit targets. Also, 'MK_PTR(TYPE_ULONG)' is used for the similar reason in linux-user/ioctls.h. Signed-off-by: Filip Bozuta --- linux

[PATCH 12/12] linux-user: Add support for selected alsa timer instructions using ioctls

2020-01-09 Thread Filip Bozuta
to select the timer that is to be paused. If no timer is selected, the error EBADFD ("File descriptor in bad shape") is returned. Implementation notes: Since all of the implemented ioctls have NULL as their third argument, their implementation was straightforward.

[PATCH 11/12] linux-user: Add support for getting/setting selected alsa timer parameters using ioctls

2020-01-09 Thread Filip Bozuta
efinition so that definition was used to define a target structure for 'snd_timer_status'. The rest of the implementation was straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 5 + linux-user/syscall_defs.h | 25 + linux-user

[PATCH 01/12] linux-user: Add support for enabling/disabling RTC features using ioctls

2020-01-09 Thread Filip Bozuta
, therefore there is no need to worry about supporting older Linux kernel version. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h | 9 + linux-user/syscall.c | 1 + linux-user/syscall_defs.h | 10 ++ 3 files changed, 20 insertions(+) diff --git a/linux-user

[PATCH 09/12] linux-user: Add support for getting/setting specified alsa timer parameters using ioctls

2020-01-09 Thread Filip Bozuta
pe 'struct snd_timer_id' which is the reason why a separate target structure 'struct target_snd_timer_id' was also defined. The rest of the implementation was straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 6 ++ linux-user/syscall_defs.h |

[PATCH 06/12] linux-user: Add support for read/clear RTC voltage low detector using ioctls

2020-01-09 Thread Filip Bozuta
for RTCs that support voltage low. The third ioctl(2) argument is ignored. Implementation notes: Since one ioctl has a pointer to 'int' as its third agrument, and another ioctl has NULL as its third argument, their implementation was straightforward. Signed-off-by: Filip Bozuta

[PATCH 12/12] linux-user: Add support for selected alsa timer instructions using ioctls

2020-01-15 Thread Filip Bozuta
to select the timer that is to be paused. If no timer is selected, the error EBADFD ("File descriptor in bad shape") is returned. Implementation notes: Since all of the implemented ioctls have NULL as their third argument, their implementation was straightforward.

[PATCH 11/12] linux-user: Add support for getting/setting selected alsa timer parameters using ioctls

2020-01-15 Thread Filip Bozuta
efinition so that definition was used to define a target structure for 'snd_timer_status'. The rest of the implementation was straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 5 + linux-user/syscall_defs.h | 25 + linux-user

[PATCH 02/12] linux-user: Add support for getting/setting RTC time and alarm using ioctls

2020-01-15 Thread Filip Bozuta
/syscall_types.h. Since all elements of this structure are of type 'int', the rest of the implementation is straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 4 linux-user/syscall_defs.h | 4 linux-user/syscall_types.h | 11 +++ 3 files changed, 19

[PATCH 10/12] linux-user: Add support for selecting alsa timer using ioctl

2020-01-15 Thread Filip Bozuta
added in 'linux-user/syscall_types.h'. The rest of the implementation was straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 2 ++ linux-user/syscall_defs.h | 7 +++ linux-user/syscall_types.h | 4 3 files changed, 13 insertions(+) diff --git a/linux-user/i

[PATCH 05/12] linux-user: Add support for getting/setting RTC PLL correction using ioctls

2020-01-15 Thread Filip Bozuta
are of type 'int', except the last one that is of type 'long'. That is the reason why a separate target structure (target_rtc_pll_info) is defined in linux-user/syscall_defs. The rest of the implementation is straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 2

[PATCH 03/12] linux-user: Add support for getting/setting RTC periodic interrupt and epoch using ioctls

2020-01-15 Thread Filip Bozuta
of type IOW with unsigned long as third argument before this patch, which is the reason why this case statement was added now for the first time. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h | 4 linux-user/syscall.c | 1 + linux-user/syscall_defs.h | 4

[PATCH 00/12] linux-user: Add support for real time clock and

2020-01-15 Thread Filip Bozuta
hanged two instances of MK_PTR(TYPE_ULONG) to TYPE_ULONG v2: * added description of each ioctl in patches * wrote a more detailed cover letter with description of testing * changed one instance of TYPE_INT to MK_PTR(TYPE_INT) Filip Bozuta (12): linux-user: Add support for enabling/disabl

[PATCH 06/12] linux-user: Add support for read/clear RTC voltage low detector using ioctls

2020-01-15 Thread Filip Bozuta
, their implementation was straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h | 2 ++ linux-user/syscall_defs.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 0a4e3f1..1f1f3e6 100644 --- a/linux-user/ioctls.h +++ b/linux-user

[PATCH 01/12] linux-user: Add support for enabling/disabling RTC features using ioctls

2020-01-15 Thread Filip Bozuta
, therefore there is no need to worry about supporting older Linux kernel version. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h | 9 + linux-user/syscall.c | 1 + linux-user/syscall_defs.h | 10 ++ 3 files changed, 20 insertions(+) diff --git a/linux-user

[PATCH 07/12] linux-user: Add support for getting alsa timer version and id

2020-01-15 Thread Filip Bozuta
ese ioctls. This needs to be done only once in this series of commits. Also, the content of this file (with respect to ioctl definitions) remained unchanged for a long time, therefore there is no need to worry about supporting older Linux kernel version. Signed-off-by: Filip Bozuta ---

[PATCH 04/12] linux-user: Add support for getting/setting RTC wakeup alarm using ioctls

2020-01-15 Thread Filip Bozuta
/syscall_types.h. Since all elements of this structure are either of type 'unsigned char' or 'struct rtc_time' (that was covered in one of previous patches), the rest of the implementation is straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 2 ++ linux-user

[PATCH 08/12] linux-user: Add support for setting alsa timer enhanced read using ioctl

2020-01-15 Thread Filip Bozuta
argument is different than 0, otherwise normal time reading is set. Implementation notes: Because the implemented ioctl has 'int' as its third argument, the implementation was straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h | 1 + linux-user/syscall_defs.h

[PATCH 09/12] linux-user: Add support for getting/setting specified alsa timer parameters using ioctls

2020-01-15 Thread Filip Bozuta
pe 'struct snd_timer_id' which is the reason why a separate target structure 'struct target_snd_timer_id' was also defined. The rest of the implementation was straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 6 ++ linux-user/syscall_defs.h |

[PATCH v7 03/13] linux-user: Add support for getting/setting RTC periodic interrupt and epoch using ioctls

2020-01-15 Thread Filip Bozuta
special handling related to 'ulong' type: they use 'abi_ulong' type to make sure that ioctl's code is calculated correctly for both 32-bit and 64-bit targets. Also, 'MK_PTR(TYPE_ULONG)' is used for the similar reason in linux-user/ioctls.h. Signed-off-by: Filip Bozuta --- linux

[PATCH v7 01/13] linux-user: Add support for enabling/disabling RTC features using ioctls

2020-01-15 Thread Filip Bozuta
, therefore there is no need to worry about supporting older Linux kernel version. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h | 9 + linux-user/syscall.c | 1 + linux-user/syscall_defs.h | 10 ++ 3 files changed, 20 insertions(+) diff --git a/linux-user

[PATCH v7 08/13] linux-user: Add support for setting alsa timer enhanced read using ioctl

2020-01-15 Thread Filip Bozuta
argument is different than 0, otherwise normal time reading is set. Implementation notes: Because the implemented ioctl has 'int' as its third argument, the implementation was straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h | 1 + linux-user/syscall_defs.h

[PATCH v7 02/13] linux-user: Add support for getting/setting RTC time and alarm using ioctls

2020-01-15 Thread Filip Bozuta
/syscall_types.h. Since all elements of this structure are of type 'int', the rest of the implementation is straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 4 linux-user/syscall_defs.h | 4 linux-user/syscall_types.h | 11 +++ 3 files changed, 19

[PATCH v7 11/13] linux-user: Add support for getting/setting selected alsa timer parameters using ioctls

2020-01-15 Thread Filip Bozuta
efinition so that definition was used to define a target structure for 'snd_timer_status'. The rest of the implementation was straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 5 + linux-user/syscall_defs.h | 25 + linux-user

[PATCH v7 09/13] linux-user: Add support for getting/setting specified alsa timer parameters using ioctls

2020-01-15 Thread Filip Bozuta
pe 'struct snd_timer_id' which is the reason why a separate target structure 'struct target_snd_timer_id' was also defined. The rest of the implementation was straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 6 ++ linux-user/syscall_defs.h |

[PATCH v7 13/13] linux-user: Add support for TYPE_LONG and TYPE_ULONG in do_ioctl()

2020-01-15 Thread Filip Bozuta
ET and RTC_EPOCH_SET are of type IOW(writing type) that have unsigned long as their third argument, they were not recognised in QEMU before the changes of this patch. Signed-off-by: Filip Bozuta --- linux-user/syscall.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-user/syscall.c b/

[PATCH v8 00/13] linux-user: Add support for real time clock and

2020-01-15 Thread Filip Bozuta
er formatted and more comprehensible v3: * changed two instances of MK_PTR(TYPE_ULONG) to TYPE_ULONG v2: * added description of each ioctl in patches * wrote a more detailed cover letter with description of testing * changed one instance of TYPE_INT to MK_PTR(TYPE_INT) Filip Boz

[PATCH v8 09/13] linux-user: Add support for getting/setting specified alsa timer parameters using ioctls

2020-01-15 Thread Filip Bozuta
pe 'struct snd_timer_id' which is the reason why a separate target structure 'struct target_snd_timer_id' was also defined. The rest of the implementation was straightforward. Reviewed-by: Laurent Vivier Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 6 ++ linux-u

[PATCH v8 06/13] linux-user: Add support for read/clear RTC voltage low detector using ioctls

2020-01-15 Thread Filip Bozuta
, their implementation was straightforward. Reviewed-by: Laurent Vivier Signed-off-by: Filip Bozuta --- linux-user/ioctls.h | 2 ++ linux-user/syscall_defs.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 0a4e3f1..1f1f3e6 100644 --- a/linux-user

[PATCH v8 01/13] linux-user: Add support for enabling/disabling RTC features using ioctls

2020-01-15 Thread Filip Bozuta
, therefore there is no need to worry about supporting older Linux kernel version. Reviewed-by: Laurent Vivier Signed-off-by: Filip Bozuta --- linux-user/ioctls.h | 9 + linux-user/syscall.c | 1 + linux-user/syscall_defs.h | 10 ++ 3 files changed, 20 insertions

[PATCH v7 07/13] linux-user: Add support for getting alsa timer version and id

2020-01-15 Thread Filip Bozuta
ese ioctls. This needs to be done only once in this series of commits. Also, the content of this file (with respect to ioctl definitions) remained unchanged for a long time, therefore there is no need to worry about supporting older Linux kernel version. Signed-off-by: Filip Bozuta ---

[PATCH v7 05/13] linux-user: Add support for getting/setting RTC PLL correction using ioctls

2020-01-15 Thread Filip Bozuta
are of type 'int', except the last one that is of type 'long'. That is the reason why a separate target structure (target_rtc_pll_info) is defined in linux-user/syscall_defs. The rest of the implementation is straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 2

[PATCH v7 04/13] linux-user: Add support for getting/setting RTC wakeup alarm using ioctls

2020-01-15 Thread Filip Bozuta
/syscall_types.h. Since all elements of this structure are either of type 'unsigned char' or 'struct rtc_time' (that was covered in one of previous patches), the rest of the implementation is straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 2 ++ linux-user

[PATCH v8 08/13] linux-user: Add support for setting alsa timer enhanced read using ioctl

2020-01-15 Thread Filip Bozuta
argument is different than 0, otherwise normal time reading is set. Implementation notes: Because the implemented ioctl has 'int' as its third argument, the implementation was straightforward. Reviewed-by: Laurent Vivier Signed-off-by: Filip Bozuta --- linux-user/ioctls.h | 1

[PATCH v8 12/13] linux-user: Add support for selected alsa timer instructions using ioctls

2020-01-15 Thread Filip Bozuta
to select the timer that is to be paused. If no timer is selected, the error EBADFD ("File descriptor in bad shape") is returned. Implementation notes: Since all of the implemented ioctls have NULL as their third argument, their implementation was straightforward. Reviewed-by:

[PATCH v8 02/13] linux-user: Add support for getting/setting RTC time and alarm using ioctls

2020-01-15 Thread Filip Bozuta
/syscall_types.h. Since all elements of this structure are of type 'int', the rest of the implementation is straightforward. Reviewed-by: Laurent Vivier Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 4 linux-user/syscall_defs.h | 4 linux-user/syscall_types.h | 11

[PATCH v7 10/13] linux-user: Add support for selecting alsa timer using ioctl

2020-01-15 Thread Filip Bozuta
added in 'linux-user/syscall_types.h'. The rest of the implementation was straightforward. Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 2 ++ linux-user/syscall_defs.h | 7 +++ linux-user/syscall_types.h | 4 3 files changed, 13 insertions(+) diff --git a/linux-user/i

[PATCH v7 12/13] linux-user: Add support for selected alsa timer instructions using ioctls

2020-01-15 Thread Filip Bozuta
to select the timer that is to be paused. If no timer is selected, the error EBADFD ("File descriptor in bad shape") is returned. Implementation notes: Since all of the implemented ioctls have NULL as their third argument, their implementation was straightforward.

Re: [PATCH 08/12] linux-user: Add support for setting alsa timer enhanced read using ioctl

2020-01-15 Thread Filip Bozuta
On 15.1.20. 17:37, Arnd Bergmann wrote: On Wed, Jan 15, 2020 at 5:32 PM Laurent Vivier wrote: Le 15/01/2020 à 17:18, Arnd Bergmann a écrit : On Wed, Jan 15, 2020 at 4:53 PM Filip Bozuta wrote: This patch implements functionality of following ioctl: SNDRV_TIMER_IOCTL_TREAD - Setting

[PATCH v8 10/13] linux-user: Add support for selecting alsa timer using ioctl

2020-01-15 Thread Filip Bozuta
added in 'linux-user/syscall_types.h'. The rest of the implementation was straightforward. Reviewed-by: Laurent Vivier Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 2 ++ linux-user/syscall_defs.h | 7 +++ linux-user/syscall_types.h | 4 3 files changed, 13 insertions(+)

[PATCH v8 11/13] linux-user: Add support for getting/setting selected alsa timer parameters using ioctls

2020-01-15 Thread Filip Bozuta
efinition so that definition was used to define a target structure for 'snd_timer_status'. The rest of the implementation was straightforward. Reviewed-by: Laurent Vivier Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 5 + linux-user/syscall_defs.h | 2

[PATCH v8 03/13] linux-user: Add support for getting/setting RTC periodic interrupt and epoch using ioctls

2020-01-15 Thread Filip Bozuta
-by: Filip Bozuta --- linux-user/ioctls.h | 4 linux-user/syscall_defs.h | 4 2 files changed, 8 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index f472794..accbdee 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -81,6 +81,10 @@ IOCTL

[PATCH v8 04/13] linux-user: Add support for getting/setting RTC wakeup alarm using ioctls

2020-01-15 Thread Filip Bozuta
/syscall_types.h. Since all elements of this structure are either of type 'unsigned char' or 'struct rtc_time' (that was covered in one of previous patches), the rest of the implementation is straightforward. Reviewed-by: Laurent Vivier Signed-off-by: Filip Bozuta --- linux-user/ioctls.h

[PATCH v8 13/13] linux-user: Add support for TYPE_LONG and TYPE_ULONG in do_ioctl()

2020-01-15 Thread Filip Bozuta
ET and RTC_EPOCH_SET are of type IOW(writing type) that have unsigned long as their third argument, they were not recognised in QEMU before the changes of this patch. Signed-off-by: Filip Bozuta --- linux-user/syscall.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-user/syscall.c b/

  1   2   3   >