diff options
author | Zhaoming Luo <zhmingluo@163.com> | 2024-12-11 08:54:15 +0800 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-12-11 22:17:20 +0100 |
commit | 5ca0fa556b24463bd52ce5e45dddefcd766ae9c3 (patch) | |
tree | cbd03c87ca8c05a9936ab797e869e42074041fbb /rtc/mig-mutate.h | |
parent | 85d59af5be84d122adab484a9c961462d4fdbfda (diff) | |
download | hurd-5ca0fa556b24463bd52ce5e45dddefcd766ae9c3.tar.gz hurd-5ca0fa556b24463bd52ce5e45dddefcd766ae9c3.tar.bz2 hurd-5ca0fa556b24463bd52ce5e45dddefcd766ae9c3.zip |
Add rtc translator and RTC CMOS driver
A /hurd/rtc translator will be created as, users can create a /dev/rtc
device using the following command:
```
sudo settrans -c /dev/rtc /hurd/rtc
```
* Makefile: add rtc-cmos server into the compile chain
* hurd/pioctl.defs: new file. Interfaces for rtc ioctl operations
* hurd/rtc.h: new file. Interfaces for rtc device
* rtc/Makefile: new file. Makefile for rtc server
* rtc/main.c: new file. Initialisation for rtc translator
* rtc/mig-mutate.h: new file. Type translation for rtc server
* rtc/rtc-cmos_pioctl-ops.c: new file. The rtc-cmos server-side implementation
Signed-off-by: Zhaoming Luo <zhmingluo@163.com>
Message-ID: <20241211005415.507656-2-zhmingluo@163.com>
Diffstat (limited to 'rtc/mig-mutate.h')
-rw-r--r-- | rtc/mig-mutate.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/rtc/mig-mutate.h b/rtc/mig-mutate.h new file mode 100644 index 00000000..ddead5be --- /dev/null +++ b/rtc/mig-mutate.h @@ -0,0 +1,24 @@ +/* Type translation for rtc operations + + Copyright (C) 2024 Free Software Foundation, Inc. + + This file is part of the GNU Hurd. + + The GNU Hurd is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or (at + your option) any later version. + + The GNU Hurd is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ + +#define IO_INTRAN trivfs_protid_t trivfs_begin_using_protid (io_t) +#define IO_INTRAN_PAYLOAD trivfs_protid_t trivfs_begin_using_protid_payload +#define IO_DESTRUCTOR trivfs_end_using_protid (trivfs_protid_t) +#define PIOCTL_IMPORTS import "../libtrivfs/mig-decls.h"; |