blob: 279b366dbfc8a541f4bf186c4eaf3676a37a5c34 [file] [log] [blame]
Fuad Tabba3e669bc2019-08-08 16:43:55 +01001// 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 Walbran196ed0e2020-04-30 11:32:29 +010019#include <hf/ffa.h>
Fuad Tabba3e669bc2019-08-08 16:43:55 +010020
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 */
28struct hf_sockaddr {
29 __kernel_sa_family_t family;
J-Alvesc653e722023-08-02 13:08:54 +010030 ffa_id_t vm_id;
Fuad Tabba3e669bc2019-08-08 16:43:55 +010031 uint64_t port;
32};