mirror of
https://github.com/BoredDevNL/BoredOS.git
synced 2026-05-15 18:58:40 +00:00
16 lines
544 B
C
16 lines
544 B
C
// Copyright (c) 2023-2026 Chris (boreddevnl)
|
|
// This software is released under the GNU General Public License v3.0. See LICENSE file for details.
|
|
// This header needs to maintain in any file it is present in, as per the GPL license terms.
|
|
#ifndef RTL8139_H
|
|
#define RTL8139_H
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
#include "pci.h"
|
|
|
|
int rtl8139_init(pci_device_t* pci_dev);
|
|
int rtl8139_send_packet(const void* data, size_t length);
|
|
int rtl8139_receive_packet(void* buffer, size_t buffer_size);
|
|
int rtl8139_get_mac(uint8_t* mac_out);
|
|
|
|
#endif
|