Fuad Tabba | 3e669bc | 2019-08-08 16:43:55 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
| 2 | /* |
| 3 | * Copyright 2019 The Hafnium Authors. |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU General Public License |
| 7 | * version 2 as published by the Free Software Foundation. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | */ |
| 14 | |
| 15 | #pragma once |
| 16 | |
| 17 | #include <linux/socket.h> |
| 18 | |
Andrew Walbran | 196ed0e | 2020-04-30 11:32:29 +0100 | [diff] [blame] | 19 | #include <hf/ffa.h> |
Fuad Tabba | 3e669bc | 2019-08-08 16:43:55 +0100 | [diff] [blame] | 20 | |
| 21 | /* TODO: Reusing AF_ECONET for now as it's otherwise unused. */ |
| 22 | #define AF_HF AF_ECONET |
| 23 | #define PF_HF AF_HF |
| 24 | |
| 25 | /* |
| 26 | * Address of a Hafnium socket |
| 27 | */ |
| 28 | struct hf_sockaddr { |
| 29 | __kernel_sa_family_t family; |
J-Alves | c653e72 | 2023-08-02 13:08:54 +0100 | [diff] [blame^] | 30 | ffa_id_t vm_id; |
Fuad Tabba | 3e669bc | 2019-08-08 16:43:55 +0100 | [diff] [blame] | 31 | uint64_t port; |
| 32 | }; |