diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2021-12-31 09:24:19 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2021-12-31 09:24:19 +0000 |
commit | 0f40c8c00e93acc20b36fa90c6a75f82de27be3a (patch) | |
tree | 990534638177bfbee93b9ebabd17620ecc84a8a3 /sys/dev/pci/if_bwfm_pci.h | |
parent | c0baaae14bc3dddff6c5607778a9dc8bb93b97b5 (diff) |
Newer Apple firmware on chipsets without a hardware RNG require the host to
provide a buffer of random bytes to the device on initialization.
Diffstat (limited to 'sys/dev/pci/if_bwfm_pci.h')
-rw-r--r-- | sys/dev/pci/if_bwfm_pci.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/pci/if_bwfm_pci.h b/sys/dev/pci/if_bwfm_pci.h index f0502ac1f70..b9edacf2bed 100644 --- a/sys/dev/pci/if_bwfm_pci.h +++ b/sys/dev/pci/if_bwfm_pci.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bwfm_pci.h,v 1.7 2021/08/31 23:05:11 patrick Exp $ */ +/* $OpenBSD: if_bwfm_pci.h,v 1.8 2021/12/31 09:24:18 patrick Exp $ */ /* * Copyright (c) 2010-2016 Broadcom Corporation * Copyright (c) 2017 Patrick Wildt <patrick@blueri.se> @@ -147,6 +147,14 @@ #define BWFM_CONSOLE_BUFSIZE 0x0c #define BWFM_CONSOLE_WRITEIDX 0x10 +#define BWFM_RANDOM_SEED_MAGIC 0xfeedc0de +#define BWFM_RANDOM_SEED_LENGTH 0x100 + +struct bwfm_pci_random_seed_footer { + uint32_t length; + uint32_t magic; +}; + struct bwfm_pci_ringinfo { uint32_t ringmem; uint32_t h2d_w_idx_ptr; |