mirror of
https://github.com/pspdev/pspsdk.git
synced 2026-01-06 15:10:29 +00:00
first commit
This commit is contained in:
27
src/wlan/Makefile.am
Normal file
27
src/wlan/Makefile.am
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
libdir = @PSPSDK_LIBDIR@
|
||||
|
||||
CC = @PSP_CC@
|
||||
CCAS = $(CC)
|
||||
AR = @PSP_AR@
|
||||
RANLIB = @PSP_RANLIB@
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/src/base -I$(top_srcdir)/src/kernel
|
||||
CFLAGS = @PSPSDK_CFLAGS@
|
||||
CCASFLAGS = $(CFLAGS) -I$(top_srcdir)/src/base -I$(top_srcdir)/src/kernel
|
||||
|
||||
WLAN_OBJS = sceWlanDrv_0000.o sceWlanDrv_0001.o sceWlanDrv_0002.o sceWlanDrv_0003.o
|
||||
WLANLIB_OBJS = sceWlanDrv_lib_0000.o sceWlanDrv_lib_0001.o sceWlanDrv_lib_0002.o sceWlanDrv_lib_0003.o sceWlanDrv_lib_0004.o sceWlanDrv_lib_0005.o sceWlanDrv_lib_0006.o sceWlanDrv_lib_0007.o sceWlanDrv_lib_0008.o sceWlanDrv_lib_0009.o sceWlanDrv_lib_0010.o sceWlanDrv_lib_0011.o sceWlanDrv_lib_0012.o sceWlanDrv_lib_0013.o sceWlanDrv_lib_0014.o sceWlanDrv_lib_0015.o sceWlanDrv_lib_0016.o sceWlanDrv_lib_0017.o sceWlanDrv_lib_0018.o
|
||||
|
||||
libpspwlanincludedir = @PSPSDK_INCLUDEDIR@
|
||||
libpspwlaninclude_HEADERS = pspwlan.h
|
||||
|
||||
lib_LIBRARIES = libpspwlan.a
|
||||
libpspwlan_a_SOURCES = sceWlanDrv.S sceWlanDrv_lib.S
|
||||
libpspwlan_a_LIBADD = $(WLAN_OBJS) $(WLANLIB_OBJS)
|
||||
|
||||
$(WLAN_OBJS): sceWlanDrv.S
|
||||
$(COMPILE) -DF_$* $< -c -o $@
|
||||
|
||||
$(WLANLIB_OBJS): sceWlanDrv_lib.S
|
||||
$(COMPILE) -DF_$* $< -c -o $@
|
||||
64
src/wlan/pspwlan.h
Normal file
64
src/wlan/pspwlan.h
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* PSP Software Development Kit - http://www.pspdev.org
|
||||
* -----------------------------------------------------------------------
|
||||
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
|
||||
*
|
||||
* pspwlan.h - Prototypes for the sceWlan library
|
||||
*
|
||||
* Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
|
||||
*
|
||||
* $Id: pspwlan.h 2207 2007-03-16 16:42:08Z tyranid $
|
||||
*/
|
||||
#ifndef __PSPWLAN_H__
|
||||
#define __PSPWLAN_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Determine if the wlan device is currently powered on
|
||||
*
|
||||
* @return 0 if off, 1 if on
|
||||
*/
|
||||
int sceWlanDevIsPowerOn(void);
|
||||
|
||||
/**
|
||||
* Determine the state of the Wlan power switch
|
||||
*
|
||||
* @return 0 if off, 1 if on
|
||||
*/
|
||||
int sceWlanGetSwitchState(void);
|
||||
|
||||
/**
|
||||
* Get the Ethernet Address of the wlan controller
|
||||
*
|
||||
* @param etherAddr - pointer to a buffer of u8 (NOTE: it only writes to 6 bytes, but
|
||||
* requests 8 so pass it 8 bytes just in case)
|
||||
* @return 0 on success, < 0 on error
|
||||
*/
|
||||
int sceWlanGetEtherAddr(u8 *etherAddr);
|
||||
|
||||
/**
|
||||
* Attach to the wlan device
|
||||
*
|
||||
* @return 0 on success, < 0 on error.
|
||||
*/
|
||||
int sceWlanDevAttach(void);
|
||||
|
||||
/**
|
||||
* Detach from the wlan device
|
||||
*
|
||||
* @return 0 on success, < 0 on error/
|
||||
*/
|
||||
int sceWlanDevDetach(void);
|
||||
|
||||
/*
|
||||
int sceWlanGPBindRegError();
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
16
src/wlan/sceWlanDrv.S
Normal file
16
src/wlan/sceWlanDrv.S
Normal file
@@ -0,0 +1,16 @@
|
||||
.set noreorder
|
||||
|
||||
#include "pspimport.s"
|
||||
|
||||
#ifdef F_sceWlanDrv_0000
|
||||
IMPORT_START "sceWlanDrv",0x40010000
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_0001
|
||||
IMPORT_FUNC "sceWlanDrv",0x93440B11,sceWlanDevIsPowerOn
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_0002
|
||||
IMPORT_FUNC "sceWlanDrv",0xD7763699,sceWlanGetSwitchState
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_0003
|
||||
IMPORT_FUNC "sceWlanDrv",0x0C622081,sceWlanGetEtherAddr
|
||||
#endif
|
||||
61
src/wlan/sceWlanDrv_lib.S
Normal file
61
src/wlan/sceWlanDrv_lib.S
Normal file
@@ -0,0 +1,61 @@
|
||||
.set noreorder
|
||||
|
||||
#include "pspimport.s"
|
||||
|
||||
#ifdef F_sceWlanDrv_lib_0000
|
||||
IMPORT_START "sceWlanDrv_lib",0x40010000
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_lib_0001
|
||||
IMPORT_FUNC "sceWlanDrv_lib",0x482CAE9A,sceWlanDevAttach
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_lib_0002
|
||||
IMPORT_FUNC "sceWlanDrv_lib",0xC9A8CAB7,sceWlanDevDetach
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_lib_0003
|
||||
IMPORT_FUNC "sceWlanDrv_lib",0x19E51F54,sceWlanDrv_lib_19E51F54
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_lib_0004
|
||||
IMPORT_FUNC "sceWlanDrv_lib",0x5E7C8D94,sceWlanDevIsGameMode
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_lib_0005
|
||||
IMPORT_FUNC "sceWlanDrv_lib",0x5ED4049A,sceWlanGPPrevEstablishActive
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_lib_0006
|
||||
IMPORT_FUNC "sceWlanDrv_lib",0xB4D7CB74,sceWlanGPSend
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_lib_0007
|
||||
IMPORT_FUNC "sceWlanDrv_lib",0xA447103A,sceWlanGPRecv
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_lib_0008
|
||||
IMPORT_FUNC "sceWlanDrv_lib",0x9658C9F7,sceWlanGPRegisterCallback
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_lib_0009
|
||||
IMPORT_FUNC "sceWlanDrv_lib",0x4C7F62E0,sceWlanGPUnRegisterCallback
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_lib_0010
|
||||
IMPORT_FUNC "sceWlanDrv_lib",0x81579D36,sceWlanDrv_lib_81579D36
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_lib_0011
|
||||
IMPORT_FUNC "sceWlanDrv_lib",0x5BAA1FE5,sceWlanDrv_lib_5BAA1FE5
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_lib_0012
|
||||
IMPORT_FUNC "sceWlanDrv_lib",0x4C14BACA,sceWlanDrv_lib_4C14BACA
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_lib_0013
|
||||
IMPORT_FUNC "sceWlanDrv_lib",0x2D0FAE4E,sceWlanDrv_lib_2D0FAE4E
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_lib_0014
|
||||
IMPORT_FUNC "sceWlanDrv_lib",0x56F467CA,sceWlanDrv_lib_56F467CA
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_lib_0015
|
||||
IMPORT_FUNC "sceWlanDrv_lib",0xFE8A0B46,sceWlanDrv_lib_FE8A0B46
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_lib_0016
|
||||
IMPORT_FUNC "sceWlanDrv_lib",0x40B0AA4A,sceWlanDrv_lib_40B0AA4A
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_lib_0017
|
||||
IMPORT_FUNC "sceWlanDrv_lib",0x7FF54BD2,sceWlanDevSetGPIO
|
||||
#endif
|
||||
#ifdef F_sceWlanDrv_lib_0018
|
||||
IMPORT_FUNC "sceWlanDrv_lib",0x05FE320C,sceWlanDevGetStateGPIO
|
||||
#endif
|
||||
Reference in New Issue
Block a user