mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-04-27 18:36:23 -04:00

Adds syscalls: - ALLOCATE_AREA - DEALLOCATE_AREA - WRITE_DATA - READ_DATA and code to access the filesystem and the flash over SPI. Based on original work by Daniel Jobson <jobson@tillitis.see> for these files: - auth_app.[ch] - flash.[ch] - spi.[ch] - partition_table.[ch] - rng.[ch] - storage.[ch] which are used with small changes to integrate with the new syscall method. Co-authored-by: Daniel Jobson <jobson@tillitis.se> Co-authored-by: Mikael Ågren <mikael@tillitis.se>
19 lines
389 B
C
19 lines
389 B
C
// Copyright (C) 2025 - Tillitis AB
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
#ifndef TKEY_SYSCALL_NUM_H
|
|
#define TKEY_SYSCALL_NUM_H
|
|
|
|
enum syscall_num {
|
|
TK1_SYSCALL_RESET = 1,
|
|
TK1_SYSCALL_ALLOC_AREA = 2,
|
|
TK1_SYSCALL_DEALLOC_AREA = 3,
|
|
TK1_SYSCALL_WRITE_DATA = 4,
|
|
TK1_SYSCALL_READ_DATA = 5,
|
|
TK1_SYSCALL_ERASE_DATA = 6,
|
|
TK1_SYSCALL_GET_VIDPID = 7,
|
|
TK1_SYSCALL_SET_LED = 10,
|
|
};
|
|
|
|
#endif
|